From 29711af1512cc07a1e5f22cddb19f2e20c08675c Mon Sep 17 00:00:00 2001 From: Ji Lu Date: Tue, 11 Feb 2020 16:00:00 -0600 Subject: [PATCH] MQE-1989: added deprecation notices for upcoming MFTF 3.0.0 changes. --- dev/tests/verification/Resources/BasicFunctionalTest.txt | 2 +- dev/tests/verification/Resources/ExecuteInSeleniumTest.txt | 2 +- src/Magento/FunctionalTestingFramework/Util/TestGenerator.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dev/tests/verification/Resources/BasicFunctionalTest.txt b/dev/tests/verification/Resources/BasicFunctionalTest.txt index e76e409d0..d9ef5cac6 100644 --- a/dev/tests/verification/Resources/BasicFunctionalTest.txt +++ b/dev/tests/verification/Resources/BasicFunctionalTest.txt @@ -15,7 +15,7 @@ use Yandex\Allure\Adapter\Annotation\TestCaseId; /** * @Title("[NO TESTCASEID]: A Functional Cest") * @group functional - * @Description("

Deprecated Notice(s):

Test files

verification/TestModule/Test/BasicFunctionalTest.xml
") + * @Description("

Deprecated Notice(s):

Test files

verification/TestModule/Test/BasicFunctionalTest.xml
") */ class BasicFunctionalTestCest { diff --git a/dev/tests/verification/Resources/ExecuteInSeleniumTest.txt b/dev/tests/verification/Resources/ExecuteInSeleniumTest.txt index 48b818200..9728059c2 100644 --- a/dev/tests/verification/Resources/ExecuteInSeleniumTest.txt +++ b/dev/tests/verification/Resources/ExecuteInSeleniumTest.txt @@ -13,7 +13,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel; use Yandex\Allure\Adapter\Annotation\TestCaseId; /** - * @Description("

Deprecated Notice(s):

Test files

verification/TestModule/Test/ExecuteInSeleniumTest.xml
") + * @Description("

Deprecated Notice(s):

Test files

verification/TestModule/Test/ExecuteInSeleniumTest.xml
") */ class ExecuteInSeleniumTestCest { diff --git a/src/Magento/FunctionalTestingFramework/Util/TestGenerator.php b/src/Magento/FunctionalTestingFramework/Util/TestGenerator.php index 527ed7323..97add6c67 100644 --- a/src/Magento/FunctionalTestingFramework/Util/TestGenerator.php +++ b/src/Magento/FunctionalTestingFramework/Util/TestGenerator.php @@ -1043,7 +1043,7 @@ public function generateStepsPhp($actionObjects, $generationScope = TestGenerato ); break; case "executeInSelenium": - $this->deprecationMessages[] = "DEPRECATED ACTION in Test: at step {$stepKey} \"executeInSelenium\"" + $this->deprecationMessages[] = "DEPRECATED ACTION in Test: at step {$stepKey} executeInSelenium" . self::MFTF_3_O_0_DEPRECATION_MESSAGE; $testSteps .= $this->wrapFunctionCall($actor, $actionObject, $function); break; @@ -1056,7 +1056,7 @@ public function generateStepsPhp($actionObjects, $generationScope = TestGenerato ); break; case "performOn": - $this->deprecationMessages[] = "DEPRECATED ACTION in Test: at step {$stepKey} \"performOn\"" + $this->deprecationMessages[] = "DEPRECATED ACTION in Test: at step {$stepKey} performOn" . self::MFTF_3_O_0_DEPRECATION_MESSAGE; $testSteps .= $this->wrapFunctionCall( $actor,