Pre Alpha Release - https://addons.mozilla.org/en-US/firefox/addon/codeception-formatters/
Adds two new formatting export options:
File -> Export Test Case As -> PHP - Codeception
File -> Export Test Suite As -> PHP - Codeception
Found in Options -> Options... -> Formats -> PHP - Codeception
You can change the markup for the files in the below options. This allows you to add your own include helpers, namespaces, comments, groups ect to your automated generated tests.
Variable for WebGuy
$i
Cept file
<?php
${variable} = new WebGuy($scenario);
${variable}->wantTo("${action}");
${content}
Cest file
<?php
class ${suiteClass} {
protected ${variable};
public function _before() {}
public function _after() {}
${content}
}
Cest Function Each test case is represented as a function within the cest
public function ${testClass} (\Webguy ${variable})
{
${variable}->wantTo('${action}');
${content}
}
Variables
- ${content} The selenium ide commands for this test
- ${variable} The variable name you specified
- ${suiteClass} The name of the Test Suite
- ${testClass} The file name of the Test Case
- ${action} The title of the Test Case
- Open
- Click
- ClickAndWait
- select
- sendKeys
- type
- dragAndDropObject
- assertText
- waitForElementPresent
- waitForText
- assertTextNotPresent (Depreciated)
- addSelection
- removeSelection
- verifySelectedValue
- assertValue
- verifyValue
- assertNotText
- verifyChecked
- verifySelectedLabel
- verifyElementNotPresent
Unsupported commands will currently be added to the test with invalid markup