Skip to content
Snippets Groups Projects
Unverified Commit 0344c718 authored by John Stennett's avatar John Stennett Committed by Alex Kolesnyk
Browse files

MQE-592: Test Case Audit

- Removing the Robo environment commands.
- Adding a Functional command to Robo.
- Removing the "skip" group from the CMS test.
- Adding the "skip" group to the Configurable Product test.
parent 35d6cf83
Branches
No related merge requests found
......@@ -72,65 +72,45 @@ class RoboFile extends \Robo\Tasks
}
/**
* Run all Functional tests using the Chrome environment.
* Run all Functional tests.
*
* @return void
*/
function chrome()
function functional()
{
$this->_exec('vendor'. DIRECTORY_SEPARATOR .'bin'. DIRECTORY_SEPARATOR .'codecept run functional --env chrome --skip-group skip');
$this->_exec('.' . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'codecept run functional --skip-group skip');
}
/**
* Run all Functional tests using the FireFox environment.
*
* @return void
*/
function firefox()
{
$this->_exec('vendor'. DIRECTORY_SEPARATOR .'bin'. DIRECTORY_SEPARATOR .'codecept run functional --env firefox --skip-group skip');
}
/**
* Run all Functional tests using the Chrome Headless environment.
*
* @return void
*/
function headless()
{
$this->_exec('vendor'. DIRECTORY_SEPARATOR .'bin'. DIRECTORY_SEPARATOR .'codecept run functional --env headless --skip-group skip');
}
/**
* Run all Tests with the specified @group tag, excluding @group 'skip', using the Chrome environment.
* Run all Tests with the specified @group tag, excluding @group 'skip'.
*
* @param string $args
* @return void
*/
function group($args = '')
{
$this->taskExec('vendor'. DIRECTORY_SEPARATOR .'bin'. DIRECTORY_SEPARATOR .'codecept run functional --verbose --steps --env chrome --skip-group skip --group')->args($args)->run();
$this->taskExec('.' . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'codecept run functional --verbose --steps --skip-group skip --group')->args($args)->run();
}
/**
* Run all Functional tests located under the Directory Path provided using the Chrome environment.
* Run all Functional tests located under the Directory Path provided.
*
* @param string $args
* @return void
*/
function folder($args = '')
{
$this->taskExec('vendor'. DIRECTORY_SEPARATOR .'bin'. DIRECTORY_SEPARATOR .'codecept run functional --env chrome')->args($args)->run();
$this->taskExec('.' . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'codecept run functional')->args($args)->run();
}
/**
* Run all Tests marked with the @group tag 'example', using the Chrome environment.
* Run all Tests marked with the @group tag 'example'.
*
* @return void
*/
function example()
{
$this->_exec('vendor'. DIRECTORY_SEPARATOR .'bin'. DIRECTORY_SEPARATOR .'codecept run --env chrome --group example --skip-group skip');
$this->_exec('.' . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'codecept run --group example --skip-group skip');
}
/**
......
......@@ -23,7 +23,6 @@
<severity value="CRITICAL"/>
<testCaseId value="MAGETWO-25580"/>
<group value="cms"/>
<group value="skip"/>
</annotations>
<amOnPage url="{{AdminLoginPage.url}}" stepKey="navigateToAdmin"/>
<fillField selector="{{AdminLoginFormSection.username}}" userInput="{{_ENV.MAGENTO_ADMIN_USERNAME}}" stepKey="fillUsername"/>
......
......@@ -27,6 +27,7 @@
<testCaseId value="MAGETWO-26041"/>
<group value="configurable"/>
<group value="product"/>
<group value="skip"/>
</annotations>
<amOnPage url="{{AdminCategoryPage.url}}" stepKey="amOnCategoryGridPage"/>
<waitForPageLoad time="30" stepKey="waitForPageLoad1"/>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment