Skip to content

MQE-1027: Allure report requires a unique story/title for proper reporting #140

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 5 commits into from
Jun 11, 2018
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ coverage/
codeception.yml
dev/tests/functional/MFTF.suite.yml
dev/tests/functional/_output
dev/mftf.log
dev/tests/mftf.log
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Title("A Functional Cest")
* @group functional
*/
class ActionGroupWithDataOverrideTestCest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Title("A Functional Cest")
* @group functional
*/
class ActionGroupWithDataTestCest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Title("A Functional Cest")
* @group functional
*/
class ActionGroupWithNoDefaultTestCest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Title("A Functional Cest")
* @group functional
*/
class ActionGroupWithPersistedDataCest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Title("A Functional Cest")
* @group functional
*/
class ActionGroupWithTopLevelPersistedDataCest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Title("A Functional Cest")
* @group functional
*/
class ArgumentWithSameNameAsElementCest
Expand Down
1 change: 0 additions & 1 deletion dev/tests/verification/Resources/BasicActionGroupTest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Title("A Functional Cest")
* @group functional
*/
class BasicActionGroupTestCest
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\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Title("A Functional Cest")
* @Title("BasicMergeTest")
* @group functional
* @group mergeTest
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Title("Parent")
* @Title("ChildExtendedTestAddHooks")
* @group Parent
*/
class ChildExtendedTestAddHooksCest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Title("Child")
* @Title("ChildExtendedTestMerging")
* @group Child
*/
class ChildExtendedTestMergingCest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Title("Child")
* @Title("ChildExtendedTestNoParent")
* @group Child
* @group skip
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Title("Child")
* @Title("ChildExtendedTestRemoveAction")
* @group Child
*/
class ChildExtendedTestRemoveActionCest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Title("Child")
* @Title("ChildExtendedTestRemoveHookAction")
* @group Child
*/
class ChildExtendedTestRemoveHookActionCest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Title("Child")
* @Title("ChildExtendedTestReplace")
* @group Child
*/
class ChildExtendedTestReplaceCest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Title("Child")
* @Title("ChildExtendedTestReplaceHook")
* @group Child
*/
class ChildExtendedTestReplaceHookCest
Expand Down
1 change: 0 additions & 1 deletion dev/tests/verification/Resources/MergedActionGroupTest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Title("A Functional Cest")
* @group functional
*/
class MergedActionGroupTestCest
Expand Down
2 changes: 1 addition & 1 deletion dev/tests/verification/Resources/MergedReferencesTest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Title("A Functional Cest")
* @Title("MergedReferencesTest")
* @group functional
*/
class MergedReferencesTestCest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Title("A Functional Cest")
* @group functional
*/
class MultipleActionGroupsTestCest
Expand Down
2 changes: 1 addition & 1 deletion dev/tests/verification/Resources/ParentExtendedTest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;

/**
* @Title("Parent")
* @Title("ParentExtendedTest")
* @group Parent
*/
class ParentExtendedTestCest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<test name="BasicActionGroupTest">
<annotations>
<severity value="CRITICAL"/>
<title value="A Functional Cest"/>
<group value="functional"/>
<features value="Action Group Functional Cest"/>
<stories value="MQE-433"/>
Expand All @@ -27,7 +26,6 @@
<test name="ActionGroupWithDataTest">
<annotations>
<severity value="CRITICAL"/>
<title value="A Functional Cest"/>
<group value="functional"/>
<features value="Action Group Functional Cest"/>
<stories value="MQE-433"/>
Expand All @@ -46,7 +44,6 @@
<test name="ActionGroupWithDataOverrideTest">
<annotations>
<severity value="CRITICAL"/>
<title value="A Functional Cest"/>
<group value="functional"/>
<features value="Action Group Functional Cest"/>
<stories value="MQE-433"/>
Expand All @@ -67,7 +64,6 @@
<test name="ActionGroupWithNoDefaultTest">
<annotations>
<severity value="CRITICAL"/>
<title value="A Functional Cest"/>
<group value="functional"/>
<features value="Action Group Functional Cest"/>
<stories value="MQE-433"/>
Expand All @@ -88,7 +84,6 @@
<test name="ActionGroupWithPersistedData">
<annotations>
<severity value="CRITICAL"/>
<title value="A Functional Cest"/>
<group value="functional"/>
<features value="Action Group Functional Cest"/>
<stories value="MQE-433"/>
Expand All @@ -108,7 +103,6 @@
<test name="ActionGroupWithTopLevelPersistedData">
<annotations>
<severity value="CRITICAL"/>
<title value="A Functional Cest"/>
<group value="functional"/>
<features value="Action Group Functional Cest"/>
<stories value="MQE-433"/>
Expand All @@ -127,7 +121,6 @@
<test name="MultipleActionGroupsTest">
<annotations>
<severity value="CRITICAL"/>
<title value="A Functional Cest"/>
<group value="functional"/>
<features value="Action Group Functional Cest"/>
<stories value="MQE-433"/>
Expand All @@ -149,7 +142,6 @@
<test name="MergedActionGroupTest">
<annotations>
<severity value="CRITICAL"/>
<title value="A Functional Cest"/>
<group value="functional"/>
<features value="Action Group Functional Cest"/>
<stories value="MQE-433"/>
Expand All @@ -168,7 +160,6 @@
<test name="ArgumentWithSameNameAsElement">
<annotations>
<severity value="CRITICAL"/>
<title value="A Functional Cest"/>
<group value="functional"/>
<features value="Action Group Functional Cest"/>
<stories value="MQE-433"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<test name="ParentExtendedTest">
<annotations>
<severity value="AVERAGE"/>
<title value="Parent"/>
<title value="ParentExtendedTest"/>
<group value="Parent"/>
<features value="Parent"/>
<stories value="Parent"/>
Expand All @@ -28,7 +28,7 @@
<test name="ChildExtendedTestReplace" extends="ParentExtendedTest">
<annotations>
<severity value="MINOR"/>
<title value="Child"/>
<title value="ChildExtendedTestReplace"/>
<group value="Child"/>
<features value="Child"/>
<stories value="Child"/>
Expand All @@ -39,7 +39,7 @@
<test name="ChildExtendedTestReplaceHook" extends="ParentExtendedTest">
<annotations>
<severity value="MINOR"/>
<title value="Child"/>
<title value="ChildExtendedTestReplaceHook"/>
<group value="Child"/>
<features value="Child"/>
<stories value="Child"/>
Expand All @@ -52,7 +52,7 @@
<test name="ChildExtendedTestMerging" extends="ParentExtendedTest">
<annotations>
<severity value="MINOR"/>
<title value="Child"/>
<title value="ChildExtendedTestMerging"/>
<group value="Child"/>
<features value="Child"/>
<stories value="Child"/>
Expand All @@ -69,7 +69,7 @@
<test name="ChildExtendedTestRemoveAction" extends="ParentExtendedTest">
<annotations>
<severity value="CRITICAL"/>
<title value="Child"/>
<title value="ChildExtendedTestRemoveAction"/>
<group value="Child"/>
<features value="Child"/>
<stories value="Child"/>
Expand All @@ -80,7 +80,7 @@
<test name="ParentExtendedTestNoHooks">
<annotations>
<severity value="AVERAGE"/>
<title value="Parent"/>
<title value="ParentExtendedTestNoHooks"/>
<group value="Parent"/>
<features value="Parent"/>
<stories value="Parent"/>
Expand All @@ -91,7 +91,7 @@
<test name="ChildExtendedTestAddHooks">
<annotations>
<severity value="AVERAGE"/>
<title value="Parent"/>
<title value="ChildExtendedTestAddHooks"/>
<group value="Parent"/>
<features value="Parent"/>
<stories value="Parent"/>
Expand All @@ -107,7 +107,7 @@
<test name="ChildExtendedTestRemoveHookAction" extends="ParentExtendedTest">
<annotations>
<severity value="CRITICAL"/>
<title value="Child"/>
<title value="ChildExtendedTestRemoveHookAction"/>
<group value="Child"/>
<features value="Child"/>
<stories value="Child"/>
Expand All @@ -120,7 +120,7 @@
<test name="ChildExtendedTestNoParent" extends="ThisTestDoesNotExist">
<annotations>
<severity value="CRITICAL"/>
<title value="Child"/>
<title value="ChildExtendedTestNoParent"/>
<group value="Child"/>
<features value="Child"/>
<stories value="Child"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<test name="BasicMergeTest">
<annotations>
<severity value="CRITICAL"/>
<title value="A Functional Cest"/>
<title value="BasicMergeTest"/>
<group value="functional"/>
<features value="Merge Functional Cest"/>
<stories value="MQE-433"/>
Expand All @@ -31,7 +31,7 @@
<test name="MergedReferencesTest">
<annotations>
<severity value="CRITICAL"/>
<title value="A Functional Cest"/>
<title value="MergedReferencesTest"/>
<group value="functional"/>
<features value="Merge Functional Cest"/>
<stories value="MQE-433"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use Magento\FunctionalTestingFramework\Test\Parsers\TestDataParser;
use Magento\FunctionalTestingFramework\Test\Util\ObjectExtensionUtil;
use Magento\FunctionalTestingFramework\Test\Util\TestObjectExtractor;
use Magento\FunctionalTestingFramework\Test\Util\AnnotationExtractor;

/**
* Class TestObjectHandler
Expand Down Expand Up @@ -142,6 +143,7 @@ private function initTestData()

$this->tests[$testName] = $testObjectExtractor->extractTestData($testData);
}
$testObjectExtractor->getAnnotationExtractor()->validateStoryTitleUniqueness();
}

/**
Expand Down
Loading