Skip to content

skf

skf/skf@v1

Run a SKF test suite.

Examples

This first example runs all tests in the foobar test directory:

- uses: skf/skf@v1
  with:
    root_project: foobar

This second example runs the foo and bar test scripts in the foobar test directory and passes tests and global_parameters:

- uses: skf/skf@v1
  with:
    root_project: foobar
    tests:
      - script: foo
        data:
             test_param1: test_value1
             test_param2: test_value2
      - script: sub_ecosystem/bar
        data:
             test_param1: test_value1
             test_param2: test_value2
    global_parameters
      global_param1: global_value1
      global_param2: global_value2

This third example runs all tests defined in the json test suite file:

- uses: skf/skf@v1
  with:
    root_project: foobar
    testsuite: path to the json file from the root_project

Inputs

  • root_project (required)

    The skf root_project to use.

  • tests (optional)

    Specifies a list of scripts, each script having a script entry specifying the pas of the script to run from the default ecosystem (‘tests’).

    Each script item may also have a data entry, a series of params: values elements.

    Without tests, all test cases in the datasource are executed.

  • data (optional)

    Specifies parameters to pass to a specific test script.

  • global_parameters (optional)

    Specifies global parameters.

  • testsuite (optional)

    Specifies the path from the root_project to a whole test suite defined in an existing json file in skf format. If this parameter is used, no other optional parameter will be taken into account.

skf/execute@v1

An execute action for use by generators. Runs a test suite or a test case in a test suite.

Example

- uses: skf/execute@v1
  with:
    test: foobar

Inputs

  • test (required)

    The test case to execute.

    It is of the form:

    {root_project}/{ecosystem}#{testscript.ta}
    

    The root ecosystem is always tests. If the skf project contains an ecosystem tree, the targeted ecosystem can be expressed as follows:

    {ecosystem_I}.{ecosystem_1}.{ecosystem_a}
    

skf/params@v1

A params action for use by generators.

Example

- uses: skf/params@v1
  with:
    data:
      global:
        key1: value1
        key2: value2
      test:
        key1: value3
        key3: value4
    format: format
format must so far be SQUASHTM_FORMAT (tm.squashtest.org/params@v1).

data can have two keys:

  • global for defining global parameters
  • test for defining test parameters

Inputs

  • data (required)

    The data to use for the automated test.

  • format (required)

    The format to use for the automated test data.

    format must so far be SQUASHTM_FORMAT (tm.squashtest.org/params@v1).