valoricDe / codeception-selenium-ide-format

Selenium IDE Codeception Formatter

Home Page:http://allmyitjason.github.io/codeception-selenium-ide-format/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Codeception Firefox addon for Selenium IDE.

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

Plugin Options

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 AcceptanceTester

$i

Test Case Export

Cept file

<?php
${variable} = new AcceptanceTester($scenario);
${variable}->wantTo("${action}");
${content}

Test Suite Export

Cest file

<?php 

class ${suiteClass} {

protected ${variable};

public function _before(\AcceptanceTester ${variable}) {}
public function _after(\AcceptanceTester ${variable}) {}

${content}
}

Cest Function Each test case is represented as a function within the cest

    public function ${testClass} (\AcceptanceTester ${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

Current Supported Selenium IDE Commands

  • 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

About

Selenium IDE Codeception Formatter

http://allmyitjason.github.io/codeception-selenium-ide-format/


Languages

Language:JavaScript 86.6%Language:HTML 12.9%Language:Shell 0.4%