Skip to content

Commit 19552f0

Browse files
committed
MQE-1963: Update XSD Schema to verify that file has only single entity
1 parent 7c989ac commit 19552f0

File tree

6 files changed

+46
-12
lines changed

6 files changed

+46
-12
lines changed

dev/tests/verification/Resources/ActionGroupWithDataOverrideTest.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use Yandex\Allure\Adapter\Annotation\TestCaseId;
1414

1515
/**
1616
* @group functional
17-
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupFunctionalTest/MergedActionGroupTest.xml<br>")
17+
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupFunctionalTest/ActionGroupWithDataOverrideTest.xml<br>")
1818
*/
1919
class ActionGroupWithDataOverrideTestCest
2020
{

dev/tests/verification/Resources/BasicFunctionalTest.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use Yandex\Allure\Adapter\Annotation\TestCaseId;
1515
/**
1616
* @Title("[NO TESTCASEID]: A Functional Cest")
1717
* @group functional
18-
* @Description("<h3>Test files</h3>verification/TestModule/Test/BasicFunctionalTest/MergeMassViaInsertAfter.xml<br>")
18+
* @Description("<h3>Test files</h3>verification/TestModule/Test/BasicFunctionalTest/BasicFunctionalTest.xml<br>")
1919
*/
2020
class BasicFunctionalTestCest
2121
{

dev/tests/verification/Resources/MergeMassViaInsertBefore.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
1313
use Yandex\Allure\Adapter\Annotation\TestCaseId;
1414

1515
/**
16-
* @Description("<h3>Test files</h3>verification/TestModule/Test/BasicFunctionalTest/MergeMassViaInsertAfter.xml<br>verification/TestModule/Test/MergeFunctionalTest/MergeMassViaInsertBefore.xml<br>")
16+
* @Description("<h3>Test files</h3>verification/TestModule/Test/BasicFunctionalTest/MergeMassViaInsertBefore.xml<br>verification/TestModule/Test/MergeFunctionalTest/MergeMassViaInsertBefore.xml<br>")
1717
*/
1818
class MergeMassViaInsertBeforeCest
1919
{

dev/tests/verification/TestModuleMerged/Test/MergeFunctionalTest.xml renamed to dev/tests/verification/TestModuleMerged/Test/MergeFunctionalTest/BasicMergeTest.xml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
* See COPYING.txt for license details.
66
*/
77
-->
8-
98
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10-
xsi:noNamespaceSchemaLocation="../../../../../src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd">
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
1110
<test name="BasicMergeTest">
1211
<annotations>
1312
<group value="mergeTest"/>
@@ -26,11 +25,4 @@
2625
<click stepKey="step10" selector="#step10MergedInResult"/>
2726
<actionGroup ref="FunctionalActionGroupWithData" stepKey="step8Merge" after="step7Merge"/>
2827
</test>
29-
<test name="MergeSkip">
30-
<annotations>
31-
<skip>
32-
<issueId value="Issue5"/>
33-
</skip>
34-
</annotations>
35-
</test>
3628
</tests>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
10+
<test name="MergeSkip">
11+
<annotations>
12+
<skip>
13+
<issueId value="Issue5"/>
14+
</skip>
15+
</annotations>
16+
</test>
17+
</tests>

dev/tests/verification/Tests/BasicCestGenerationTest.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
class BasicCestGenerationTest extends MftfTestCase
1111
{
1212
/**
13+
* BasicFunctionalTest:
1314
* Tests flat generation of a hardcoded test file with no external references.
1415
*
1516
* @throws \Exception
@@ -20,6 +21,30 @@ public function testBasicGeneration()
2021
$this->generateAndCompareTest('BasicFunctionalTest');
2122
}
2223

24+
/**
25+
* MergeMassViaInsertAfter:
26+
* Tests flat generation of a hardcoded test file with no external references.
27+
*
28+
* @throws \Exception
29+
* @throws \Magento\FunctionalTestingFramework\Exceptions\TestReferenceException
30+
*/
31+
public function testMergeMassViaInsertAfter()
32+
{
33+
$this->generateAndCompareTest('MergeMassViaInsertAfter');
34+
}
35+
36+
/**
37+
* MergeMassViaInsertBefore:
38+
* Tests flat generation of a hardcoded test file with no external references.
39+
*
40+
* @throws \Exception
41+
* @throws \Magento\FunctionalTestingFramework\Exceptions\TestReferenceException
42+
*/
43+
public function testMergeMassViaInsertBefore()
44+
{
45+
$this->generateAndCompareTest('MergeMassViaInsertBefore');
46+
}
47+
2348
/**
2449
* Tests flat generation of a hardcoded test file with no external references and with XML comments in:
2550
* - root `tests` element

0 commit comments

Comments
 (0)