Skip to content
Closed
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
Expand Up @@ -54,18 +54,18 @@ public function testActionGroupDomInvalidXmlValidation()
public function testActionGroupDomDuplicateActionGroupsValidation()
{
$sampleXml = '<actionGroups>
<actionGroup name="actionGroupName">
<actionGroup name="ActionGroupNameActionGroup">
<wait time="1" stepKey="key1" />
</actionGroup>
<actionGroup name="actionGroupName">
<actionGroup name="ActionGroupNameActionGroup">
<wait time="1" stepKey="key1" />
</actionGroup>
</actionGroups>';

$exceptionCollector = new ExceptionCollector();
new ActionGroupDom($sampleXml, 'dupeNameActionGroup.xml', $exceptionCollector);
$this->expectException(\Exception::class);
$this->expectExceptionMessageRegExp("/name: actionGroupName is used more than once./");
$this->expectExceptionMessageRegExp("/name: ActionGroupNameActionGroup is used more than once./");
$exceptionCollector->throwException();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ 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>")
*/
class ActionGroupContainsStepKeyInArgTextCest
class ActionGroupContainsStepKeyInArgTextActionGroupCest
{
/**
* @param AcceptanceTester $I
* @throws \Exception
*/
public function _before(AcceptanceTester $I)
{
$I->comment("Entering Action Group [actionGroup] actionGroupContainsStepKeyInArgValue");
$I->comment("Entering Action Group [actionGroup] ActionGroupContainsStepKeyInArgValueActionGroup");
$I->see("arg1", ".selector"); // stepKey: arg1ActionGroup
$I->comment("Exiting Action Group [actionGroup] actionGroupContainsStepKeyInArgValue");
$I->comment("Exiting Action Group [actionGroup] ActionGroupContainsStepKeyInArgValueActionGroup");
}

/**
Expand All @@ -37,8 +37,8 @@ class ActionGroupContainsStepKeyInArgTextCest
*/
public function ActionGroupContainsStepKeyInArgText(AcceptanceTester $I)
{
$I->comment("Entering Action Group [actionGroup] actionGroupContainsStepKeyInArgValue");
$I->comment("Entering Action Group [actionGroup] ActionGroupContainsStepKeyInArgValueActionGroup");
$I->see("arg1", ".selector"); // stepKey: arg1ActionGroup
$I->comment("Exiting Action Group [actionGroup] actionGroupContainsStepKeyInArgValue");
$I->comment("Exiting Action Group [actionGroup] ActionGroupContainsStepKeyInArgValueActionGroup");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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>")
*/
class ActionGroupMergedViaInsertAfterCest
class ActionGroupMergedViaInsertAfterActionGroupCest
{
/**
* @Features({"TestModule"})
Expand All @@ -26,13 +26,13 @@ class ActionGroupMergedViaInsertAfterCest
*/
public function ActionGroupMergedViaInsertAfter(AcceptanceTester $I)
{
$I->comment("Entering Action Group [keyone] FunctionalActionGroupForMassMergeAfter");
$I->comment("Entering Action Group [keyone] FunctionalActionGroupForMassMergeAfterActionGroup");
$I->fillField("#foo", "foo"); // stepKey: fillField1Keyone
$I->fillField("#bar", "bar"); // stepKey: fillField2Keyone
$I->click("#foo2"); // stepKey: mergeAfterBarKeyone
$I->click("#bar2"); // stepKey: mergeAfterFoo2Keyone
$I->click("#baz2"); // stepKey: mergeAfterBar2Keyone
$I->fillField("#baz", "baz"); // stepKey: fillField3Keyone
$I->comment("Exiting Action Group [keyone] FunctionalActionGroupForMassMergeAfter");
$I->comment("Exiting Action Group [keyone] FunctionalActionGroupForMassMergeAfterActionGroup");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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>")
*/
class ActionGroupMergedViaInsertBeforeCest
class ActionGroupMergedViaInsertBeforeActionGroupCest
{
/**
* @Features({"TestModule"})
Expand All @@ -24,15 +24,15 @@ class ActionGroupMergedViaInsertBeforeCest
* @return void
* @throws \Exception
*/
public function ActionGroupMergedViaInsertBefore(AcceptanceTester $I)
public function ActionGroupMergedViaInsertBeforeActionGroup(AcceptanceTester $I)
{
$I->comment("Entering Action Group [keyone] FunctionalActionGroupForMassMergeBefore");
$I->comment("Entering Action Group [keyone] FunctionalActionGroupForMassMergeBeforeActionGroup");
$I->fillField("#foo", "foo"); // stepKey: fillField1Keyone
$I->click("#foo2"); // stepKey: mergeBeforeBarKeyone
$I->click("#bar2"); // stepKey: mergeAfterFoo2Keyone
$I->click("#baz2"); // stepKey: mergeAfterBar2Keyone
$I->fillField("#bar", "bar"); // stepKey: fillField2Keyone
$I->fillField("#baz", "baz"); // stepKey: fillField3Keyone
$I->comment("Exiting Action Group [keyone] FunctionalActionGroupForMassMergeBefore");
$I->comment("Exiting Action Group [keyone] FunctionalActionGroupForMassMergeBeforeActionGroup");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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>")
*/
class ActionGroupSkipReadinessCest
class ActionGroupSkipReadinessActionGroupCest
{
/**
* @Features({"TestModule"})
Expand All @@ -24,12 +24,12 @@ class ActionGroupSkipReadinessCest
* @return void
* @throws \Exception
*/
public function ActionGroupSkipReadiness(AcceptanceTester $I)
public function ActionGroupSkipReadinessActionGroup(AcceptanceTester $I)
{
$I->comment("Entering Action Group actionGroupWithSkipReadinessActions (skipReadinessActionGroup)");
$I->comment("Entering Action Group ActionGroupWithSkipReadinessActionsActionGroup (skipReadinessActionGroup)");
$I->skipReadinessCheck(true);
$I->comment("ActionGroupSkipReadiness");
$I->skipReadinessCheck(false);
$I->comment("Exiting Action Group actionGroupWithSkipReadinessActions (skipReadinessActionGroup)");
$I->comment("Exiting Action Group ActionGroupWithSkipReadinessActionsActionGroup (skipReadinessActionGroup)");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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>")
*/
class ActionGroupUsingNestedArgumentCest
class ActionGroupToExtendActionGroupCest
{
/**
* @Features({"TestModule"})
Expand All @@ -24,11 +24,11 @@ class ActionGroupUsingNestedArgumentCest
* @return void
* @throws \Exception
*/
public function ActionGroupUsingNestedArgument(AcceptanceTester $I)
public function ActionGroupToExtendActionGroup(AcceptanceTester $I)
{
$I->comment("Entering Action Group [actionGroup] ActionGroupToExtend");
$I->comment("Entering Action Group [actionGroup] ActionGroupToExtendActionGroup");
$grabProductsActionGroup = $I->grabMultiple("selector"); // stepKey: grabProductsActionGroup
$I->assertCount(99, $grabProductsActionGroup); // stepKey: assertCountActionGroup
$I->comment("Exiting Action Group [actionGroup] ActionGroupToExtend");
$I->comment("Exiting Action Group [actionGroup] ActionGroupToExtendActionGroup");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ 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>")
*/
class ActionGroupUsingCreateDataCest
class ActionGroupUsingCreateDataActionGroupCest
{
/**
* @param AcceptanceTester $I
* @throws \Exception
*/
public function _before(AcceptanceTester $I)
{
$I->comment("Entering Action Group [Key1] actionGroupWithCreateData");
$I->comment("Entering Action Group [Key1] ActionGroupWithCreateDataActionGroup");
$I->createEntity("createCategoryKey1", "hook", "ApiCategory", [], []); // stepKey: createCategoryKey1
$I->createEntity("createConfigProductKey1", "hook", "ApiConfigurableProduct", ["createCategoryKey1"], []); // stepKey: createConfigProductKey1
$I->comment("Exiting Action Group [Key1] actionGroupWithCreateData");
$I->comment("Exiting Action Group [Key1] ActionGroupWithCreateDataActionGroup");
}

/**
Expand All @@ -36,7 +36,7 @@ class ActionGroupUsingCreateDataCest
* @return void
* @throws \Exception
*/
public function ActionGroupUsingCreateData(AcceptanceTester $I)
public function ActionGroupUsingCreateDataActionGroupAcceptanceTester $I)
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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>")
*/
class ActionGroupToExtendCest
class ActionGroupUsingNestedArgumentActionGroupCest
{
/**
* @Features({"TestModule"})
Expand All @@ -24,11 +24,11 @@ class ActionGroupToExtendCest
* @return void
* @throws \Exception
*/
public function ActionGroupToExtend(AcceptanceTester $I)
public function ActionGroupUsingNestedArgumentActionGroup(AcceptanceTester $I)
{
$I->comment("Entering Action Group [actionGroup] ActionGroupToExtend");
$I->comment("Entering Action Group [actionGroup] ActionGroupToExtendActionGroup");
$grabProductsActionGroup = $I->grabMultiple("selector"); // stepKey: grabProductsActionGroup
$I->assertCount(99, $grabProductsActionGroup); // stepKey: assertCountActionGroup
$I->comment("Exiting Action Group [actionGroup] ActionGroupToExtend");
$I->comment("Exiting Action Group [actionGroup] ActionGroupToExtendActionGroup");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,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>")
*/
class ActionGroupWithDataOverrideTestCest
class ActionGroupWithDataOverrideTestActionGroupCest
{
/**
* @param AcceptanceTester $I
Expand Down Expand Up @@ -61,16 +61,16 @@ class ActionGroupWithDataOverrideTestCest
* @return void
* @throws \Exception
*/
public function ActionGroupWithDataOverrideTest(AcceptanceTester $I)
public function ActionGroupWithDataOverrideTestActionGroup(AcceptanceTester $I)
{
$I->amOnPage("/someUrl"); // stepKey: step1
$I->comment("Entering Action Group [actionGroupWithDataOverride1] FunctionalActionGroupWithData");
$I->comment("Entering Action Group [actionGroupWithDataOverride1] FunctionalActionGroupWithDataActionGroup");
$I->amOnPage("/John/Doe.html"); // stepKey: amOnPage1ActionGroupWithDataOverride1
$I->fillField("#foo", "John"); // stepKey: fillField1ActionGroupWithDataOverride1
$I->fillField("#bar", "Doe"); // stepKey: fillField2ActionGroupWithDataOverride1
$I->searchAndMultiSelectOption("#foo", ["John", "Doe"]); // stepKey: multi1ActionGroupWithDataOverride1
$I->see("#element .John"); // stepKey: see1ActionGroupWithDataOverride1
$I->comment("Exiting Action Group [actionGroupWithDataOverride1] FunctionalActionGroupWithData");
$I->comment("Exiting Action Group [actionGroupWithDataOverride1] FunctionalActionGroupWithDataActionGroup");
$I->click("loginButton"); // stepKey: step6
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,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>")
*/
class ActionGroupWithDataTestCest
class ActionGroupWithDataTestActionGroupCest
{
/**
* @param AcceptanceTester $I
Expand Down Expand Up @@ -61,7 +61,7 @@ class ActionGroupWithDataTestCest
* @return void
* @throws \Exception
*/
public function ActionGroupWithDataTest(AcceptanceTester $I)
public function ActionGroupWithDataTestActionGroup(AcceptanceTester $I)
{
$I->amOnPage("/someUrl"); // stepKey: step1
$I->comment("Entering Action Group [actionGroupWithData1] FunctionalActionGroupWithData");
Expand Down
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]: 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>")
*/
class ActionGroupWithDefaultArgumentAndStringSelectorParamCest
class ActionGroupWithDefaultArgumentAndStringSelectorParamActionGroupCest
{
/**
* @Severity(level = SeverityLevel::BLOCKER)
Expand All @@ -26,10 +26,10 @@ class ActionGroupWithDefaultArgumentAndStringSelectorParamCest
* @return void
* @throws \Exception
*/
public function ActionGroupWithDefaultArgumentAndStringSelectorParam(AcceptanceTester $I)
public function ActionGroupWithDefaultArgumentAndStringSelectorParamActionGroup(AcceptanceTester $I)
{
$I->comment("Entering Action Group [actionGroup] actionGroupWithDefaultArgumentAndStringSelectorParam");
$I->comment("Entering Action Group [actionGroup] ActionGroupWithDefaultArgumentAndStringSelectorParamActionGroup");
$I->see("John", "#element .test1"); // stepKey: seeFirstNameActionGroup
$I->comment("Exiting Action Group [actionGroup] actionGroupWithDefaultArgumentAndStringSelectorParam");
$I->comment("Exiting Action Group [actionGroup] ActionGroupWithDefaultArgumentAndStringSelectorParamActionGroup");
}
}
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]: 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>")
*/
class ActionGroupWithMultipleParameterSelectorsFromDefaultArgumentCest
class ActionGroupWithMultipleParameterSelectorsFromDefaultArgumentActionGroupCest
{
/**
* @Severity(level = SeverityLevel::BLOCKER)
Expand All @@ -26,10 +26,10 @@ class ActionGroupWithMultipleParameterSelectorsFromDefaultArgumentCest
* @return void
* @throws \Exception
*/
public function ActionGroupWithMultipleParameterSelectorsFromDefaultArgument(AcceptanceTester $I)
public function ActionGroupWithMultipleParameterSelectorsFromDefaultArgumentActionGroup(AcceptanceTester $I)
{
$I->comment("Entering Action Group [actionGroup] actionGroupWithMultipleParameterSelectorsFromArgument");
$I->comment("Entering Action Group [actionGroup] ActionGroupWithMultipleParameterSelectorsFromArgumentActionGroup");
$I->see("Doe", "#John-Doe .test"); // stepKey: seeLastNameActionGroup
$I->comment("Exiting Action Group [actionGroup] actionGroupWithMultipleParameterSelectorsFromArgument");
$I->comment("Exiting Action Group [actionGroup] ActionGroupWithMultipleParameterSelectorsFromArgumentActionGroup");
}
}
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]: 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>")
*/
class ActionGroupWithNoArgumentsCest
class ActionGroupWithNoArgumentsActionGroupCest
{
/**
* @Severity(level = SeverityLevel::BLOCKER)
Expand All @@ -26,10 +26,10 @@ class ActionGroupWithNoArgumentsCest
* @return void
* @throws \Exception
*/
public function ActionGroupWithNoArguments(AcceptanceTester $I)
public function ActionGroupWithNoArgumentsActionGroup(AcceptanceTester $I)
{
$I->comment("Entering Action Group [actionGroup] actionGroupWithoutArguments");
$I->comment("Entering Action Group [actionGroup] ActionGroupWithoutArgumentsActionGroup");
$I->wait(1); // stepKey: waitForNothingActionGroup
$I->comment("Exiting Action Group [actionGroup] actionGroupWithoutArguments");
$I->comment("Exiting Action Group [actionGroup] ActionGroupWithoutArgumentsActionGroup");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,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>")
*/
class ActionGroupWithNoDefaultTestCest
class ActionGroupWithNoDefaultTestActionGroupCest
{
/**
* @param AcceptanceTester $I
Expand Down Expand Up @@ -61,7 +61,7 @@ class ActionGroupWithNoDefaultTestCest
* @return void
* @throws \Exception
*/
public function ActionGroupWithNoDefaultTest(AcceptanceTester $I)
public function ActionGroupWithNoDefaultTestActionGroup(AcceptanceTester $I)
{
$I->amOnPage("/someUrl"); // stepKey: step1
$I->comment("Entering Action Group [actionGroupWithDataOverride1] FunctionalActionGroupNoDefault");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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>")
*/
class ActionGroupWithParameterizedElementWithHyphenCest
class ActionGroupWithParameterizedElementWithHyphenActionGroupCest
{
/**
* @Features({"TestModule"})
Expand All @@ -24,7 +24,7 @@ class ActionGroupWithParameterizedElementWithHyphenCest
* @return void
* @throws \Exception
*/
public function ActionGroupWithParameterizedElementWithHyphen(AcceptanceTester $I)
public function ActionGroupWithParameterizedElementWithHyphenActionGroup(AcceptanceTester $I)
{
$I->comment("Entering Action Group [actionGroup] SectionArgumentWithParameterizedSelector");
$keyoneActionGroup = $I->executeJS("#element .full-width"); // stepKey: keyoneActionGroup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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>")
*/
class ActionGroupWithParameterizedElementsWithStepKeyReferencesCest
class ActionGroupWithParameterizedElementsWithStepKeyReferencesActionGroupCest
{
/**
* @Features({"TestModule"})
Expand All @@ -24,15 +24,15 @@ class ActionGroupWithParameterizedElementsWithStepKeyReferencesCest
* @return void
* @throws \Exception
*/
public function ActionGroupWithParameterizedElementsWithStepKeyReferences(AcceptanceTester $I)
public function ActionGroupWithParameterizedElementsWithStepKeyReferencesActionGroup(AcceptanceTester $I)
{
$I->comment("Entering Action Group [actionGroup] actionGroupWithParametrizedSelectors");
$I->comment("Entering Action Group [actionGroup] ActionGroupWithParametrizedSelectorsActionGroup");
$testVariableActionGroup = $I->executeJS("return 1"); // stepKey: testVariableActionGroup
$testVariable2ActionGroup = $I->executeJS("return 'test'"); // stepKey: testVariable2ActionGroup
$I->createEntity("createSimpleDataActionGroup", "test", "simpleData", [], []); // stepKey: createSimpleDataActionGroup
$I->click("#{$testVariable2ActionGroup} .John"); // stepKey: click1ActionGroup
$I->click("#Doe-" . msq("simpleParamData") . "prename .{$testVariableActionGroup}"); // stepKey: click2ActionGroup
$I->seeElement("//div[@name='Tiberius'][@class={$testVariableActionGroup}][@data-element='{$testVariable2ActionGroup}'][" . $I->retrieveEntityField('createSimpleData', 'name', 'test') . "]"); // stepKey: see1ActionGroup
$I->comment("Exiting Action Group [actionGroup] actionGroupWithParametrizedSelectors");
$I->comment("Exiting Action Group [actionGroup] ActionGroupWithParametrizedSelectorsActionGroup");
}
}
Loading