Skip to content

MFTF deprecation notice attributes #560

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

Merged
merged 9 commits into from
Jan 27, 2020
Merged
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../../src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
<actionGroup name="DeprecatedCommentActionGroup" deprecated="This Action Group is outdated and will be deleted next release.">
<comment userInput="Action group to demonstrate deprecation notices." stepKey="comment" />
</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->

<entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../../src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataProfileSchema.xsd">
<entity name="DeprecatedMessageData" deprecated="Entity is deprecated. Please use 'MessageData'.">
<data key="message">Introduction to the Magento Functional Testing Framework</data>
</entity>
</entities>
14 changes: 14 additions & 0 deletions dev/tests/functional/tests/MFTF/DevDocs/Data/MessageData.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->

<entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../../src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataProfileSchema.xsd">
<entity name="MessageData">
<data key="message">Introduction to the Magento Functional Testing Framework</data>
</entity>
</entities>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->

<pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../../src/Magento/FunctionalTestingFramework/Page/etc/PageObject.xsd">
<page name="DeprecatedMFTFDocPage" url="mftf/docs/introduction.html" area="storefront" module="MFTF_DevDocs" deprecated="New page was introduced. Please use 'MFTFDocPage'">
<section name="contentSection" />
</page>
</pages>
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
xsi:noNamespaceSchemaLocation="../../../../../../../src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
<section name="contentSection">
<element name="pageIntro" type="text" selector=".page-intro"/>
<element name="deprecatedPageIntro" type="text" selector=".page-intro-old" deprecated="New element was introduced. Please use 'contentSection.pageIntro'"/>
</section>
</sections>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->

<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../../src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
<section name="DeprecatedContentSection" deprecated="New section was introduces. Please use 'contentSection'">
<element name="pageIntro" type="text" selector=".page-intro"/>
</section>
</sections>
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?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="../../../../../../../src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd">
<test name="DeprecatedDevDocsTest" deprecated="Test is deprecated due to more stable test was introduces. Please use 'DevDocsTest'.">
<annotations>
<!-- Comment in Annotations for DevDocs Test are not affecting test generation -->
<features value="DevDocs available"/>
<stories value="[Deprecated] MFTF DevDocs available"/>
<title value="[Deprecated] Magento Functional Testing Framework Documentation is available."/>
<description value="[Deprecated] Magento Functional Testing Framework Documentation is available."/>
<severity value="CRITICAL"/>
<group value="mftf"/>
</annotations>

<!-- Open MFTF DevDocs Page -->
<amOnPage stepKey="openMFTFDevDocPage" url="{{DeprecatedMFTFDocPage.url}}" />
<see stepKey="verifyPageIntroText" selector="{{DeprecatedContentSection.pageIntro}}" userInput="{{DeprecatedMessageData.message}}" />
<actionGroup ref="DeprecatedCommentActionGroup" stepKey="commentActionGroup" />
</test>
</tests>
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@

<!-- Open MFTF DevDocs Page -->
<amOnPage stepKey="openMFTFDevDocPage" url="{{MFTFDocPage.url}}" />
<see stepKey="verifyPageIntroText" selector="{{contentSection.pageIntro}}" userInput="Introduction to the Magento Functional Testing Framework" />
<see stepKey="verifyPageIntroText" selector="{{contentSection.pageIntro}}" userInput="{{MessageData.message}}" />
</test>
</tests>
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function testGetTestObject()
[
'features' => ['NO MODULE DETECTED'],
'group' => ['test'],
'description' => ['<br><br><b><font size=+0.9>Test files</font></b><br><br>']
'description' => ['test_files' => '<h3>Test files</h3>', 'deprecated' => []]
],
[
TestObjectExtractor::TEST_BEFORE_HOOK => $expectedBeforeHookObject,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/ActionGroupTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupTest.xml<br>")
*/
class ActionGroupContainsStepKeyInArgTextCest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/ActionGroupFunctionalTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupFunctionalTest.xml<br>")
*/
class ActionGroupMergedViaInsertAfterCest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/ActionGroupFunctionalTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupFunctionalTest.xml<br>")
*/
class ActionGroupMergedViaInsertBeforeCest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/ActionGroupTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupTest.xml<br>")
*/
class ActionGroupSkipReadinessCest
{
Expand Down
2 changes: 1 addition & 1 deletion dev/tests/verification/Resources/ActionGroupToExtend.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/ActionGroupTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupTest.xml<br>")
*/
class ActionGroupToExtendCest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/ActionGroupTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupTest.xml<br>")
*/
class ActionGroupUsingCreateDataCest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/ActionGroupTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupTest.xml<br>")
*/
class ActionGroupUsingNestedArgumentCest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @group functional
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/ActionGroupFunctionalTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupFunctionalTest.xml<br>")
*/
class ActionGroupWithDataOverrideTestCest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @group functional
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/ActionGroupFunctionalTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupFunctionalTest.xml<br>")
*/
class ActionGroupWithDataTestCest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Title("[NO TESTCASEID]: Action Group With Default Argument Value and Hardcoded Value in Param")
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/ActionGroupTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupTest.xml<br>")
*/
class ActionGroupWithDefaultArgumentAndStringSelectorParamCest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Title("[NO TESTCASEID]: Action Group With Passed Argument Value and Multiple Argument Values in Param")
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/ActionGroupTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupTest.xml<br>")
*/
class ActionGroupWithMultipleParameterSelectorsFromDefaultArgumentCest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Title("[NO TESTCASEID]: Action Group With No Argument")
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/ActionGroupTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupTest.xml<br>")
*/
class ActionGroupWithNoArgumentsCest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @group functional
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/ActionGroupFunctionalTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupFunctionalTest.xml<br>")
*/
class ActionGroupWithNoDefaultTestCest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/ActionGroupTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupTest.xml<br>")
*/
class ActionGroupWithParameterizedElementWithHyphenCest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/ActionGroupTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupTest.xml<br>")
*/
class ActionGroupWithParameterizedElementsWithStepKeyReferencesCest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Title("[NO TESTCASEID]: Action Group With Passed Argument Value and Hardcoded Value in Param")
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/ActionGroupTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupTest.xml<br>")
*/
class ActionGroupWithPassedArgumentAndStringSelectorParamCest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @group functional
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/ActionGroupFunctionalTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupFunctionalTest.xml<br>")
*/
class ActionGroupWithPersistedDataCest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/ActionGroupTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupTest.xml<br>")
*/
class ActionGroupWithSectionAndDataAsArgumentsCest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Title("[NO TESTCASEID]: Action Group With Simple Data Usage From Default Argument")
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/ActionGroupTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupTest.xml<br>")
*/
class ActionGroupWithSimpleDataUsageFromDefaultArgumentCest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Title("[NO TESTCASEID]: Action Group With Simple Data Usage From Passed Argument")
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/ActionGroupTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupTest.xml<br>")
*/
class ActionGroupWithSimpleDataUsageFromPassedArgumentCest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Title("[NO TESTCASEID]: Action Group With Default Argument Value and Argument Value in Param")
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/ActionGroupTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupTest.xml<br>")
*/
class ActionGroupWithSingleParameterSelectorFromDefaultArgumentCest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Title("[NO TESTCASEID]: Action Group With Passed Argument Value and Argument Value in Param")
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/ActionGroupTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupTest.xml<br>")
*/
class ActionGroupWithSingleParameterSelectorFromPassedArgumentCest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/ActionGroupTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupTest.xml<br>")
*/
class ActionGroupWithStepKeyReferencesCest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @group functional
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/ActionGroupFunctionalTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupFunctionalTest.xml<br>")
*/
class ActionGroupWithTopLevelPersistedDataCest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @group functional
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/ActionGroupFunctionalTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupFunctionalTest.xml<br>")
*/
class ArgumentWithSameNameAsElementCest
{
Expand Down
2 changes: 1 addition & 1 deletion dev/tests/verification/Resources/AssertTest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/AssertTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/AssertTest.xml<br>")
*/
class AssertTestCest
{
Expand Down
2 changes: 1 addition & 1 deletion dev/tests/verification/Resources/BasicActionGroupTest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @group functional
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/ActionGroupFunctionalTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupFunctionalTest.xml<br>")
*/
class BasicActionGroupTestCest
{
Expand Down
2 changes: 1 addition & 1 deletion dev/tests/verification/Resources/BasicFunctionalTest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use Yandex\Allure\Adapter\Annotation\TestCaseId;
/**
* @Title("[NO TESTCASEID]: A Functional Cest")
* @group functional
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/BasicFunctionalTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/BasicFunctionalTest.xml<br>")
*/
class BasicFunctionalTestCest
{
Expand Down
2 changes: 1 addition & 1 deletion dev/tests/verification/Resources/BasicMergeTest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use Yandex\Allure\Adapter\Annotation\TestCaseId;
* @Title("[NO TESTCASEID]: BasicMergeTest")
* @group functional
* @group mergeTest
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/MergeFunctionalTest.xml<br>verification/TestModuleMerged/Test/MergeFunctionalTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/MergeFunctionalTest.xml<br>verification/TestModuleMerged/Test/MergeFunctionalTest.xml<br>")
*/
class BasicMergeTestCest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Description("<br><br><b><font size=+0.9>Test files</font></b><br><br>verification/TestModule/Test/CharacterReplacementTest.xml<br>")
* @Description("<h3>Test files</h3>verification/TestModule/Test/CharacterReplacementTest.xml<br>")
*/
class CharacterReplacementTestCest
{
Expand Down
Loading