Skip to content

Wrapper around se-interpreter that allows for overriding parts of tests and configurations.

License

Notifications You must be signed in to change notification settings

ianmcodes/sei-improved

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Wrapper Around se-interpreter

npm install -g sei-improved

The configuration file for this is almost exactly the same as for se-interpreter. In fact, it will run se-interpreter configs with un-modified.

However things get interesting when you get to the "overrides" section.

Anotated Example config:

{
  "type": "interpreter-config",
  "configurations": [
    {
      "settings": [
        {
          "driverOptions": {
            "protocol": "http",
            "host": "hub.browserstack.com",
            "port": "80",
            "path": "/wd/hub"
          },
          "browserOptions":  {
            "browserstack.user": "",
            "browserstack.key": "",
            "browserstack.debug": true,
            "browserstack.tunnel": true
          }
        }
      ],
      "scripts": [
        {
          "overrides": [
            {
              "type": "get", /* This is the type of step in the selenium builder test */
              "key": "url", /* This is what to override in the step */
              /* if the value matches "from", replace with "to" */
              "from": "http://staging.example.com/test/",
              "to": "http://dev.example.com/seleniumtests/"
            },
            {
              "type": "get",
              "key": "url",
              "from": "http://staging.example.com/test/alt.html",
              "to": "http://dev.example.com/seleniumtests/alt.html"
            }
          ],
          "scripts": [
            "Test_Set_1/*",
            "Test_Set_2/*"
          ]
        }
      ]
    }
  ]
}

About

Wrapper around se-interpreter that allows for overriding parts of tests and configurations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published