Skip to content

Commit eb87ccf

Browse files
committed
MQE-659: [ALLURE] Include the test "stepKey" in the MFTF Allure Report
- test fixes
1 parent c5b651b commit eb87ccf

File tree

65 files changed

+864
-747
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+864
-747
lines changed

dev/tests/verification/Resources/ActionGroupContainsStepKeyInArgText.txt

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ class ActionGroupContainsStepKeyInArgTextCest
2424
*/
2525
public function _before(AcceptanceTester $I)
2626
{
27-
$I->comment("Entering Action Group actionGroupContainsStepKeyInArgValue (actionGroup)");
28-
$I->see("arg1", ".selector");
29-
$I->comment("Exiting Action Group actionGroupContainsStepKeyInArgValue (actionGroup)");
27+
$I->comment("Entering Action Group [actionGroup] actionGroupContainsStepKeyInArgValue");
28+
$I->see("arg1", ".selector"); // stepKey: arg1ActionGroup
29+
$I->comment("Exiting Action Group [actionGroup] actionGroupContainsStepKeyInArgValue");
3030
}
3131

3232
/**
@@ -38,8 +38,8 @@ class ActionGroupContainsStepKeyInArgTextCest
3838
*/
3939
public function ActionGroupContainsStepKeyInArgText(AcceptanceTester $I)
4040
{
41-
$I->comment("Entering Action Group actionGroupContainsStepKeyInArgValue (actionGroup)");
42-
$I->see("arg1", ".selector");
43-
$I->comment("Exiting Action Group actionGroupContainsStepKeyInArgValue (actionGroup)");
41+
$I->comment("Entering Action Group [actionGroup] actionGroupContainsStepKeyInArgValue");
42+
$I->see("arg1", ".selector"); // stepKey: arg1ActionGroup
43+
$I->comment("Exiting Action Group [actionGroup] actionGroupContainsStepKeyInArgValue");
4444
}
4545
}

dev/tests/verification/Resources/ActionGroupMergedViaInsertAfter.txt

+8-8
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ class ActionGroupMergedViaInsertAfterCest
2727
*/
2828
public function ActionGroupMergedViaInsertAfter(AcceptanceTester $I)
2929
{
30-
$I->comment("Entering Action Group FunctionalActionGroupForMassMergeAfter (keyone)");
31-
$I->fillField("#foo", "foo");
32-
$I->fillField("#bar", "bar");
33-
$I->click("#foo2");
34-
$I->click("#bar2");
35-
$I->click("#baz2");
36-
$I->fillField("#baz", "baz");
37-
$I->comment("Exiting Action Group FunctionalActionGroupForMassMergeAfter (keyone)");
30+
$I->comment("Entering Action Group [keyone] FunctionalActionGroupForMassMergeAfter");
31+
$I->fillField("#foo", "foo"); // stepKey: fillField1Keyone
32+
$I->fillField("#bar", "bar"); // stepKey: fillField2Keyone
33+
$I->click("#foo2"); // stepKey: mergeAfterBarKeyone
34+
$I->click("#bar2"); // stepKey: mergeAfterFoo2Keyone
35+
$I->click("#baz2"); // stepKey: mergeAfterBar2Keyone
36+
$I->fillField("#baz", "baz"); // stepKey: fillField3Keyone
37+
$I->comment("Exiting Action Group [keyone] FunctionalActionGroupForMassMergeAfter");
3838
}
3939
}

dev/tests/verification/Resources/ActionGroupMergedViaInsertBefore.txt

+8-8
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ class ActionGroupMergedViaInsertBeforeCest
2727
*/
2828
public function ActionGroupMergedViaInsertBefore(AcceptanceTester $I)
2929
{
30-
$I->comment("Entering Action Group FunctionalActionGroupForMassMergeBefore (keyone)");
31-
$I->fillField("#foo", "foo");
32-
$I->click("#foo2");
33-
$I->click("#bar2");
34-
$I->click("#baz2");
35-
$I->fillField("#bar", "bar");
36-
$I->fillField("#baz", "baz");
37-
$I->comment("Exiting Action Group FunctionalActionGroupForMassMergeBefore (keyone)");
30+
$I->comment("Entering Action Group [keyone] FunctionalActionGroupForMassMergeBefore");
31+
$I->fillField("#foo", "foo"); // stepKey: fillField1Keyone
32+
$I->click("#foo2"); // stepKey: mergeBeforeBarKeyone
33+
$I->click("#bar2"); // stepKey: mergeAfterFoo2Keyone
34+
$I->click("#baz2"); // stepKey: mergeAfterBar2Keyone
35+
$I->fillField("#bar", "bar"); // stepKey: fillField2Keyone
36+
$I->fillField("#baz", "baz"); // stepKey: fillField3Keyone
37+
$I->comment("Exiting Action Group [keyone] FunctionalActionGroupForMassMergeBefore");
3838
}
3939
}

dev/tests/verification/Resources/ActionGroupToExtend.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ class ActionGroupToExtendCest
2727
*/
2828
public function ActionGroupToExtend(AcceptanceTester $I)
2929
{
30-
$I->comment("Entering Action Group ActionGroupToExtend (actionGroup)");
31-
$grabProductsActionGroup = $I->grabMultiple("selector");
32-
$I->assertCount(99, $grabProductsActionGroup);
33-
$I->comment("Exiting Action Group ActionGroupToExtend (actionGroup)");
30+
$I->comment("Entering Action Group [actionGroup] ActionGroupToExtend");
31+
$grabProductsActionGroup = $I->grabMultiple("selector"); // stepKey: grabProductsActionGroup
32+
$I->assertCount(99, $grabProductsActionGroup); // stepKey: assertCountActionGroup
33+
$I->comment("Exiting Action Group [actionGroup] ActionGroupToExtend");
3434
}
3535
}

dev/tests/verification/Resources/ActionGroupUsingCreateData.txt

+6-4
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,26 @@ class ActionGroupUsingCreateDataCest
2424
*/
2525
public function _before(AcceptanceTester $I)
2626
{
27-
$I->comment("Entering Action Group actionGroupWithCreateData (Key1)");
28-
$I->amGoingTo("create entity that has the stepKey: createCategoryKey1");
27+
$I->comment("Entering Action Group [Key1] actionGroupWithCreateData");
28+
$I->comment("[createCategoryKey1] create 'ApiCategory' entity");
2929
PersistedObjectHandler::getInstance()->createEntity(
3030
"createCategoryKey1",
3131
"hook",
3232
"ApiCategory",
3333
[],
3434
null
3535
);
36-
$I->amGoingTo("create entity that has the stepKey: createConfigProductKey1");
36+
37+
$I->comment("[createConfigProductKey1] create 'ApiConfigurableProduct' entity");
3738
PersistedObjectHandler::getInstance()->createEntity(
3839
"createConfigProductKey1",
3940
"hook",
4041
"ApiConfigurableProduct",
4142
["createCategoryKey1"],
4243
null
4344
);
44-
$I->comment("Exiting Action Group actionGroupWithCreateData (Key1)");
45+
46+
$I->comment("Exiting Action Group [Key1] actionGroupWithCreateData");
4547
}
4648

4749
/**

dev/tests/verification/Resources/ActionGroupUsingNestedArgument.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ class ActionGroupUsingNestedArgumentCest
2727
*/
2828
public function ActionGroupUsingNestedArgument(AcceptanceTester $I)
2929
{
30-
$I->comment("Entering Action Group ActionGroupToExtend (actionGroup)");
31-
$grabProductsActionGroup = $I->grabMultiple("selector");
32-
$I->assertCount(99, $grabProductsActionGroup);
33-
$I->comment("Exiting Action Group ActionGroupToExtend (actionGroup)");
30+
$I->comment("Entering Action Group [actionGroup] ActionGroupToExtend");
31+
$grabProductsActionGroup = $I->grabMultiple("selector"); // stepKey: grabProductsActionGroup
32+
$I->assertCount(99, $grabProductsActionGroup); // stepKey: assertCountActionGroup
33+
$I->comment("Exiting Action Group [actionGroup] ActionGroupToExtend");
3434
}
3535
}

dev/tests/verification/Resources/ActionGroupWithDataOverrideTest.txt

+20-19
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,19 @@ class ActionGroupWithDataOverrideTestCest
2525
*/
2626
public function _before(AcceptanceTester $I)
2727
{
28-
$I->amGoingTo("create entity that has the stepKey: createPersonParam");
28+
$I->comment("[createPersonParam] create 'ReplacementPerson' entity");
2929
PersistedObjectHandler::getInstance()->createEntity(
3030
"createPersonParam",
3131
"hook",
3232
"ReplacementPerson",
3333
[],
3434
null
3535
);
36-
$I->comment("Entering Action Group FunctionalActionGroup (beforeGroup)");
37-
$I->fillField("#foo", "myData1");
38-
$I->fillField("#bar", "myData2");
39-
$I->comment("Exiting Action Group FunctionalActionGroup (beforeGroup)");
36+
37+
$I->comment("Entering Action Group [beforeGroup] FunctionalActionGroup");
38+
$I->fillField("#foo", "myData1"); // stepKey: fillField1BeforeGroup
39+
$I->fillField("#bar", "myData2"); // stepKey: fillField2BeforeGroup
40+
$I->comment("Exiting Action Group [beforeGroup] FunctionalActionGroup");
4041
}
4142

4243
/**
@@ -45,10 +46,10 @@ class ActionGroupWithDataOverrideTestCest
4546
*/
4647
public function _after(AcceptanceTester $I)
4748
{
48-
$I->comment("Entering Action Group FunctionalActionGroup (afterGroup)");
49-
$I->fillField("#foo", "myData1");
50-
$I->fillField("#bar", "myData2");
51-
$I->comment("Exiting Action Group FunctionalActionGroup (afterGroup)");
49+
$I->comment("Entering Action Group [afterGroup] FunctionalActionGroup");
50+
$I->fillField("#foo", "myData1"); // stepKey: fillField1AfterGroup
51+
$I->fillField("#bar", "myData2"); // stepKey: fillField2AfterGroup
52+
$I->comment("Exiting Action Group [afterGroup] FunctionalActionGroup");
5253
}
5354

5455
/**
@@ -57,7 +58,7 @@ class ActionGroupWithDataOverrideTestCest
5758
*/
5859
public function _failed(AcceptanceTester $I)
5960
{
60-
$I->saveScreenshot();
61+
$I->saveScreenshot(); // stepKey: saveScreenshot
6162
}
6263

6364
/**
@@ -71,14 +72,14 @@ class ActionGroupWithDataOverrideTestCest
7172
*/
7273
public function ActionGroupWithDataOverrideTest(AcceptanceTester $I)
7374
{
74-
$I->amOnPage("/someUrl");
75-
$I->comment("Entering Action Group FunctionalActionGroupWithData (actionGroupWithDataOverride1)");
76-
$I->amOnPage("/John/Doe.html");
77-
$I->fillField("#foo", "John");
78-
$I->fillField("#bar", "Doe");
79-
$I->searchAndMultiSelectOption("#foo", ["John", "Doe"]);
80-
$I->see("#element .John");
81-
$I->comment("Exiting Action Group FunctionalActionGroupWithData (actionGroupWithDataOverride1)");
82-
$I->click("loginButton");
75+
$I->amOnPage("/someUrl"); // stepKey: step1
76+
$I->comment("Entering Action Group [actionGroupWithDataOverride1] FunctionalActionGroupWithData");
77+
$I->amOnPage("/John/Doe.html"); // stepKey: amOnPage1ActionGroupWithDataOverride1
78+
$I->fillField("#foo", "John"); // stepKey: fillField1ActionGroupWithDataOverride1
79+
$I->fillField("#bar", "Doe"); // stepKey: fillField2ActionGroupWithDataOverride1
80+
$I->searchAndMultiSelectOption("#foo", ["John", "Doe"]); // stepKey: multi1ActionGroupWithDataOverride1
81+
$I->see("#element .John"); // stepKey: see1ActionGroupWithDataOverride1
82+
$I->comment("Exiting Action Group [actionGroupWithDataOverride1] FunctionalActionGroupWithData");
83+
$I->click("loginButton"); // stepKey: step6
8384
}
8485
}

dev/tests/verification/Resources/ActionGroupWithDataTest.txt

+20-19
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,19 @@ class ActionGroupWithDataTestCest
2525
*/
2626
public function _before(AcceptanceTester $I)
2727
{
28-
$I->amGoingTo("create entity that has the stepKey: createPersonParam");
28+
$I->comment("[createPersonParam] create 'ReplacementPerson' entity");
2929
PersistedObjectHandler::getInstance()->createEntity(
3030
"createPersonParam",
3131
"hook",
3232
"ReplacementPerson",
3333
[],
3434
null
3535
);
36-
$I->comment("Entering Action Group FunctionalActionGroup (beforeGroup)");
37-
$I->fillField("#foo", "myData1");
38-
$I->fillField("#bar", "myData2");
39-
$I->comment("Exiting Action Group FunctionalActionGroup (beforeGroup)");
36+
37+
$I->comment("Entering Action Group [beforeGroup] FunctionalActionGroup");
38+
$I->fillField("#foo", "myData1"); // stepKey: fillField1BeforeGroup
39+
$I->fillField("#bar", "myData2"); // stepKey: fillField2BeforeGroup
40+
$I->comment("Exiting Action Group [beforeGroup] FunctionalActionGroup");
4041
}
4142

4243
/**
@@ -45,10 +46,10 @@ class ActionGroupWithDataTestCest
4546
*/
4647
public function _after(AcceptanceTester $I)
4748
{
48-
$I->comment("Entering Action Group FunctionalActionGroup (afterGroup)");
49-
$I->fillField("#foo", "myData1");
50-
$I->fillField("#bar", "myData2");
51-
$I->comment("Exiting Action Group FunctionalActionGroup (afterGroup)");
49+
$I->comment("Entering Action Group [afterGroup] FunctionalActionGroup");
50+
$I->fillField("#foo", "myData1"); // stepKey: fillField1AfterGroup
51+
$I->fillField("#bar", "myData2"); // stepKey: fillField2AfterGroup
52+
$I->comment("Exiting Action Group [afterGroup] FunctionalActionGroup");
5253
}
5354

5455
/**
@@ -57,7 +58,7 @@ class ActionGroupWithDataTestCest
5758
*/
5859
public function _failed(AcceptanceTester $I)
5960
{
60-
$I->saveScreenshot();
61+
$I->saveScreenshot(); // stepKey: saveScreenshot
6162
}
6263

6364
/**
@@ -71,14 +72,14 @@ class ActionGroupWithDataTestCest
7172
*/
7273
public function ActionGroupWithDataTest(AcceptanceTester $I)
7374
{
74-
$I->amOnPage("/someUrl");
75-
$I->comment("Entering Action Group FunctionalActionGroupWithData (actionGroupWithData1)");
76-
$I->amOnPage("/Jane/Dane.html");
77-
$I->fillField("#foo", "Jane");
78-
$I->fillField("#bar", "Dane");
79-
$I->searchAndMultiSelectOption("#foo", ["Jane", "Dane"]);
80-
$I->see("#element .Jane");
81-
$I->comment("Exiting Action Group FunctionalActionGroupWithData (actionGroupWithData1)");
82-
$I->click("loginButton");
75+
$I->amOnPage("/someUrl"); // stepKey: step1
76+
$I->comment("Entering Action Group [actionGroupWithData1] FunctionalActionGroupWithData");
77+
$I->amOnPage("/Jane/Dane.html"); // stepKey: amOnPage1ActionGroupWithData1
78+
$I->fillField("#foo", "Jane"); // stepKey: fillField1ActionGroupWithData1
79+
$I->fillField("#bar", "Dane"); // stepKey: fillField2ActionGroupWithData1
80+
$I->searchAndMultiSelectOption("#foo", ["Jane", "Dane"]); // stepKey: multi1ActionGroupWithData1
81+
$I->see("#element .Jane"); // stepKey: see1ActionGroupWithData1
82+
$I->comment("Exiting Action Group [actionGroupWithData1] FunctionalActionGroupWithData");
83+
$I->click("loginButton"); // stepKey: step6
8384
}
8485
}

dev/tests/verification/Resources/ActionGroupWithDefaultArgumentAndStringSelectorParam.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class ActionGroupWithDefaultArgumentAndStringSelectorParamCest
2929
*/
3030
public function ActionGroupWithDefaultArgumentAndStringSelectorParam(AcceptanceTester $I)
3131
{
32-
$I->comment("Entering Action Group actionGroupWithDefaultArgumentAndStringSelectorParam (actionGroup)");
33-
$I->see("John", "#element .test1");
34-
$I->comment("Exiting Action Group actionGroupWithDefaultArgumentAndStringSelectorParam (actionGroup)");
32+
$I->comment("Entering Action Group [actionGroup] actionGroupWithDefaultArgumentAndStringSelectorParam");
33+
$I->see("John", "#element .test1"); // stepKey: seeFirstNameActionGroup
34+
$I->comment("Exiting Action Group [actionGroup] actionGroupWithDefaultArgumentAndStringSelectorParam");
3535
}
3636
}

dev/tests/verification/Resources/ActionGroupWithMultipleParameterSelectorsFromDefaultArgument.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class ActionGroupWithMultipleParameterSelectorsFromDefaultArgumentCest
2929
*/
3030
public function ActionGroupWithMultipleParameterSelectorsFromDefaultArgument(AcceptanceTester $I)
3131
{
32-
$I->comment("Entering Action Group actionGroupWithMultipleParameterSelectorsFromArgument (actionGroup)");
33-
$I->see("Doe", "#John-Doe .test");
34-
$I->comment("Exiting Action Group actionGroupWithMultipleParameterSelectorsFromArgument (actionGroup)");
32+
$I->comment("Entering Action Group [actionGroup] actionGroupWithMultipleParameterSelectorsFromArgument");
33+
$I->see("Doe", "#John-Doe .test"); // stepKey: seeLastNameActionGroup
34+
$I->comment("Exiting Action Group [actionGroup] actionGroupWithMultipleParameterSelectorsFromArgument");
3535
}
3636
}

dev/tests/verification/Resources/ActionGroupWithNoArguments.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class ActionGroupWithNoArgumentsCest
2929
*/
3030
public function ActionGroupWithNoArguments(AcceptanceTester $I)
3131
{
32-
$I->comment("Entering Action Group actionGroupWithoutArguments (actionGroup)");
33-
$I->wait(1);
34-
$I->comment("Exiting Action Group actionGroupWithoutArguments (actionGroup)");
32+
$I->comment("Entering Action Group [actionGroup] actionGroupWithoutArguments");
33+
$I->wait(1); // stepKey: waitForNothingActionGroup
34+
$I->comment("Exiting Action Group [actionGroup] actionGroupWithoutArguments");
3535
}
3636
}

dev/tests/verification/Resources/ActionGroupWithNoDefaultTest.txt

+18-17
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,19 @@ class ActionGroupWithNoDefaultTestCest
2525
*/
2626
public function _before(AcceptanceTester $I)
2727
{
28-
$I->amGoingTo("create entity that has the stepKey: createPersonParam");
28+
$I->comment("[createPersonParam] create 'ReplacementPerson' entity");
2929
PersistedObjectHandler::getInstance()->createEntity(
3030
"createPersonParam",
3131
"hook",
3232
"ReplacementPerson",
3333
[],
3434
null
3535
);
36-
$I->comment("Entering Action Group FunctionalActionGroup (beforeGroup)");
37-
$I->fillField("#foo", "myData1");
38-
$I->fillField("#bar", "myData2");
39-
$I->comment("Exiting Action Group FunctionalActionGroup (beforeGroup)");
36+
37+
$I->comment("Entering Action Group [beforeGroup] FunctionalActionGroup");
38+
$I->fillField("#foo", "myData1"); // stepKey: fillField1BeforeGroup
39+
$I->fillField("#bar", "myData2"); // stepKey: fillField2BeforeGroup
40+
$I->comment("Exiting Action Group [beforeGroup] FunctionalActionGroup");
4041
}
4142

4243
/**
@@ -45,10 +46,10 @@ class ActionGroupWithNoDefaultTestCest
4546
*/
4647
public function _after(AcceptanceTester $I)
4748
{
48-
$I->comment("Entering Action Group FunctionalActionGroup (afterGroup)");
49-
$I->fillField("#foo", "myData1");
50-
$I->fillField("#bar", "myData2");
51-
$I->comment("Exiting Action Group FunctionalActionGroup (afterGroup)");
49+
$I->comment("Entering Action Group [afterGroup] FunctionalActionGroup");
50+
$I->fillField("#foo", "myData1"); // stepKey: fillField1AfterGroup
51+
$I->fillField("#bar", "myData2"); // stepKey: fillField2AfterGroup
52+
$I->comment("Exiting Action Group [afterGroup] FunctionalActionGroup");
5253
}
5354

5455
/**
@@ -57,7 +58,7 @@ class ActionGroupWithNoDefaultTestCest
5758
*/
5859
public function _failed(AcceptanceTester $I)
5960
{
60-
$I->saveScreenshot();
61+
$I->saveScreenshot(); // stepKey: saveScreenshot
6162
}
6263

6364
/**
@@ -71,12 +72,12 @@ class ActionGroupWithNoDefaultTestCest
7172
*/
7273
public function ActionGroupWithNoDefaultTest(AcceptanceTester $I)
7374
{
74-
$I->amOnPage("/someUrl");
75-
$I->comment("Entering Action Group FunctionalActionGroupNoDefault (actionGroupWithDataOverride1)");
76-
$I->fillField("#foo", "Jane");
77-
$I->fillField("#bar", "Dane");
78-
$I->see("#Jane .Dane");
79-
$I->comment("Exiting Action Group FunctionalActionGroupNoDefault (actionGroupWithDataOverride1)");
80-
$I->click("loginButton");
75+
$I->amOnPage("/someUrl"); // stepKey: step1
76+
$I->comment("Entering Action Group [actionGroupWithDataOverride1] FunctionalActionGroupNoDefault");
77+
$I->fillField("#foo", "Jane"); // stepKey: fillField1ActionGroupWithDataOverride1
78+
$I->fillField("#bar", "Dane"); // stepKey: fillField2ActionGroupWithDataOverride1
79+
$I->see("#Jane .Dane"); // stepKey: see2ActionGroupWithDataOverride1
80+
$I->comment("Exiting Action Group [actionGroupWithDataOverride1] FunctionalActionGroupNoDefault");
81+
$I->click("loginButton"); // stepKey: step6
8182
}
8283
}

dev/tests/verification/Resources/ActionGroupWithParameterizedElementWithHyphen.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class ActionGroupWithParameterizedElementWithHyphenCest
2727
*/
2828
public function ActionGroupWithParameterizedElementWithHyphen(AcceptanceTester $I)
2929
{
30-
$I->comment("Entering Action Group SectionArgumentWithParameterizedSelector (actionGroup)");
31-
$keyoneActionGroup = $I->executeJS("#element .full-width");
32-
$I->comment("Exiting Action Group SectionArgumentWithParameterizedSelector (actionGroup)");
30+
$I->comment("Entering Action Group [actionGroup] SectionArgumentWithParameterizedSelector");
31+
$keyoneActionGroup = $I->executeJS("#element .full-width"); // stepKey: keyoneActionGroup
32+
$I->comment("Exiting Action Group [actionGroup] SectionArgumentWithParameterizedSelector");
3333
}
3434
}

0 commit comments

Comments
 (0)