hiptest-publisher 1.29.2 → 1.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/config/locales/en.yml +7 -0
- data/lib/config/swift-xctest.conf +18 -0
- data/lib/hiptest-publisher.rb +1 -3
- data/lib/hiptest-publisher/client.rb +26 -4
- data/lib/hiptest-publisher/export_cache.rb +85 -0
- data/lib/hiptest-publisher/formatters/reporter.rb +4 -0
- data/lib/hiptest-publisher/handlebars_helper.rb +13 -4
- data/lib/hiptest-publisher/options_parser.rb +6 -0
- data/lib/templates/behat/actionword.hbs +1 -1
- data/lib/templates/behat/actionwords.hbs +2 -2
- data/lib/templates/behat/library.hbs +2 -2
- data/lib/templates/behat/libraryactionword.hbs +1 -1
- data/lib/templates/behave/actionword.hbs +2 -2
- data/lib/templates/behave/actionwords.hbs +2 -2
- data/lib/templates/behave/library.hbs +2 -2
- data/lib/templates/behave/libraryactionword.hbs +2 -2
- data/lib/templates/common/_gherkin_pattern.hbs +1 -1
- data/lib/templates/common/datatable.hbs +2 -2
- data/lib/templates/csharp/_body.hbs +1 -1
- data/lib/templates/csharp/actionwords.hbs +2 -2
- data/lib/templates/csharp/folder.hbs +1 -1
- data/lib/templates/csharp/ifthen.hbs +2 -2
- data/lib/templates/csharp/scenarios.hbs +1 -1
- data/lib/templates/csharp/template.hbs +1 -1
- data/lib/templates/csharp/tests.hbs +1 -1
- data/lib/templates/csharp/while.hbs +1 -1
- data/lib/templates/cucumber/actionwords.hbs +1 -1
- data/lib/templates/cucumber/groovy/step-definitions/_gherkin_pattern.hbs +1 -1
- data/lib/templates/cucumber/groovy/step-definitions/actionword.hbs +1 -1
- data/lib/templates/cucumber/groovy/step-definitions/actionwords.hbs +1 -1
- data/lib/templates/cucumber/groovy/step-definitions/library.hbs +1 -1
- data/lib/templates/cucumber/groovy/step-definitions/libraryactionword.hbs +1 -1
- data/lib/templates/cucumber/java/actionword.hbs +1 -1
- data/lib/templates/cucumber/java/actionwords.hbs +1 -1
- data/lib/templates/cucumber/javascript/actionword.hbs +1 -1
- data/lib/templates/cucumber/javascript/actionwords.hbs +1 -1
- data/lib/templates/cucumber/typescript/actionword.hbs +1 -1
- data/lib/templates/cucumber/typescript/actionwords.hbs +1 -1
- data/lib/templates/cucumber/typescript/library.hbs +1 -1
- data/lib/templates/cucumber/typescript/libraryactionword.hbs +1 -1
- data/lib/templates/gherkin/_gherkin_text.hbs +1 -1
- data/lib/templates/gherkin/_scenario.hbs +2 -2
- data/lib/templates/gherkin/datatable.hbs +1 -1
- data/lib/templates/gherkin/folder.hbs +3 -3
- data/lib/templates/gherkin/single_test.hbs +1 -1
- data/lib/templates/gherkin/template.hbs +1 -1
- data/lib/templates/groovy/_steps.hbs +1 -1
- data/lib/templates/groovy/actionwords.hbs +2 -2
- data/lib/templates/groovy/datatable.hbs +1 -1
- data/lib/templates/groovy/folder.hbs +2 -2
- data/lib/templates/groovy/libraries.hbs +3 -3
- data/lib/templates/groovy/library.hbs +2 -2
- data/lib/templates/groovy/scenarios.hbs +1 -1
- data/lib/templates/groovy/template.hbs +1 -1
- data/lib/templates/groovy/tests.hbs +1 -1
- data/lib/templates/java/_body.hbs +1 -1
- data/lib/templates/java/actionwords.hbs +2 -2
- data/lib/templates/java/espresso/folder.hbs +1 -1
- data/lib/templates/java/espresso/scenarios.hbs +1 -1
- data/lib/templates/java/espresso/tests.hbs +1 -1
- data/lib/templates/java/folder.hbs +1 -1
- data/lib/templates/java/ifthen.hbs +2 -2
- data/lib/templates/java/libraries.hbs +3 -3
- data/lib/templates/java/library.hbs +2 -2
- data/lib/templates/java/scenarios.hbs +1 -1
- data/lib/templates/java/template.hbs +1 -1
- data/lib/templates/java/testng/folder.hbs +1 -1
- data/lib/templates/java/testng/scenarios.hbs +1 -1
- data/lib/templates/java/testng/tests.hbs +1 -1
- data/lib/templates/java/tests.hbs +1 -1
- data/lib/templates/java/while.hbs +1 -1
- data/lib/templates/javascript/_body.hbs +2 -2
- data/lib/templates/javascript/actionwords.hbs +2 -2
- data/lib/templates/javascript/codeceptjs/actionword.hbs +1 -1
- data/lib/templates/javascript/codeceptjs/actionwords.hbs +1 -1
- data/lib/templates/javascript/es6/actionwords.hbs +2 -2
- data/lib/templates/javascript/folder.hbs +1 -1
- data/lib/templates/javascript/ifthen.hbs +2 -2
- data/lib/templates/javascript/jasmine/folder.hbs +1 -1
- data/lib/templates/javascript/jasmine/scenarios.hbs +1 -1
- data/lib/templates/javascript/jasmine/tests.hbs +1 -1
- data/lib/templates/javascript/mocha/folder.hbs +1 -1
- data/lib/templates/javascript/scenarios.hbs +1 -1
- data/lib/templates/javascript/template.hbs +1 -1
- data/lib/templates/javascript/tests.hbs +1 -1
- data/lib/templates/javascript/while.hbs +1 -1
- data/lib/templates/jbehave/_scenario.hbs +1 -1
- data/lib/templates/jbehave/folder.hbs +3 -3
- data/lib/templates/jbehave/single_test.hbs +1 -1
- data/lib/templates/jbehave/steps/_gherkin_pattern.hbs +1 -1
- data/lib/templates/jbehave/steps/actionword.hbs +1 -1
- data/lib/templates/jbehave/steps/actionwords.hbs +1 -1
- data/lib/templates/php/_body.hbs +1 -1
- data/lib/templates/php/actionwords.hbs +2 -2
- data/lib/templates/php/folder.hbs +1 -1
- data/lib/templates/php/ifthen.hbs +2 -2
- data/lib/templates/php/libraries.hbs +4 -4
- data/lib/templates/php/library.hbs +2 -2
- data/lib/templates/php/scenarios.hbs +1 -1
- data/lib/templates/php/template.hbs +1 -1
- data/lib/templates/php/tests.hbs +1 -1
- data/lib/templates/php/while.hbs +1 -1
- data/lib/templates/python/_body.hbs +1 -1
- data/lib/templates/python/actionwords.hbs +1 -1
- data/lib/templates/python/folder.hbs +1 -1
- data/lib/templates/python/libraries.hbs +4 -4
- data/lib/templates/python/library.hbs +1 -1
- data/lib/templates/python/scenarios.hbs +1 -1
- data/lib/templates/python/template.hbs +1 -1
- data/lib/templates/python/tests.hbs +1 -1
- data/lib/templates/python/unittest/actionwords.hbs +1 -1
- data/lib/templates/python/while.hbs +1 -1
- data/lib/templates/robotframework/_keyword_body.hbs +1 -1
- data/lib/templates/robotframework/_scenario.hbs +1 -1
- data/lib/templates/robotframework/actionwords.hbs +1 -1
- data/lib/templates/robotframework/datatable.hbs +1 -1
- data/lib/templates/robotframework/folder.hbs +16 -16
- data/lib/templates/robotframework/scenarios.hbs +15 -15
- data/lib/templates/robotframework/template.hbs +1 -1
- data/lib/templates/robotframework/tests.hbs +2 -2
- data/lib/templates/ruby/_body.hbs +1 -1
- data/lib/templates/ruby/actionwords.hbs +2 -2
- data/lib/templates/ruby/folder.hbs +1 -1
- data/lib/templates/ruby/ifthen.hbs +2 -2
- data/lib/templates/ruby/minitest/folder.hbs +1 -1
- data/lib/templates/ruby/minitest/scenarios.hbs +1 -1
- data/lib/templates/ruby/minitest/tests.hbs +1 -1
- data/lib/templates/ruby/scenarios.hbs +1 -1
- data/lib/templates/ruby/template.hbs +1 -1
- data/lib/templates/ruby/tests.hbs +1 -1
- data/lib/templates/ruby/while.hbs +1 -1
- data/lib/templates/seleniumide/call.hbs +1 -1
- data/lib/templates/seleniumide/single_test.hbs +1 -1
- data/lib/templates/seleniumide/tests.hbs +1 -1
- data/lib/templates/specflow/actionword.hbs +1 -1
- data/lib/templates/specflow/actionwords.hbs +2 -2
- data/lib/templates/swift/_body.hbs +11 -0
- data/lib/templates/swift/_item_as_def.hbs +5 -0
- data/lib/templates/swift/_scenario.hbs +7 -0
- data/lib/templates/swift/actionword.hbs +1 -0
- data/lib/templates/swift/actionwords.hbs +6 -0
- data/lib/templates/swift/argument.hbs +1 -0
- data/lib/templates/swift/assign.hbs +1 -0
- data/lib/templates/swift/binaryexpression.hbs +1 -0
- data/lib/templates/swift/call.hbs +2 -0
- data/lib/templates/swift/dataset.hbs +4 -0
- data/lib/templates/swift/dict.hbs +1 -0
- data/lib/templates/swift/field.hbs +1 -0
- data/lib/templates/swift/folder.hbs +23 -0
- data/lib/templates/swift/ifthen.hbs +7 -0
- data/lib/templates/swift/index.hbs +1 -0
- data/lib/templates/swift/list.hbs +1 -0
- data/lib/templates/swift/parameter.hbs +1 -0
- data/lib/templates/swift/parenthesis.hbs +1 -0
- data/lib/templates/swift/project.hbs +2 -0
- data/lib/templates/swift/property.hbs +1 -0
- data/lib/templates/swift/scenario.hbs +1 -0
- data/lib/templates/swift/scenarios.hbs +25 -0
- data/lib/templates/swift/single_scenario.hbs +24 -0
- data/lib/templates/swift/single_test.hbs +23 -0
- data/lib/templates/swift/step.hbs +1 -0
- data/lib/templates/swift/stringliteral.hbs +1 -0
- data/lib/templates/swift/symbol.hbs +1 -0
- data/lib/templates/swift/tag.hbs +1 -0
- data/lib/templates/swift/template.hbs +1 -0
- data/lib/templates/swift/test.hbs +1 -0
- data/lib/templates/swift/tests.hbs +25 -0
- data/lib/templates/swift/while.hbs +5 -0
- data/lib/templates/typescript/actionwords.hbs +1 -1
- data/lib/templates/typescript/libraries.hbs +4 -4
- data/lib/templates/typescript/library.hbs +1 -1
- metadata +73 -40
@@ -5,5 +5,5 @@ Before(() => {{#curly}}{{#indent}}
|
|
5
5
|
actionwords = Object.create(require('{{{ relative_path './actionwords.js' }}}')).Actionwords;{{/indent}}
|
6
6
|
{{/curly}});
|
7
7
|
|
8
|
-
{{#each rendered_children.actionwords}}{{{
|
8
|
+
{{#each rendered_children.actionwords as |actionword|}}{{{actionword}}}
|
9
9
|
{{/each}}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
if ({{{ rendered_children.condition }}}) {{#curly}}
|
2
|
-
{{#indent}}{{#each rendered_children.then}}{{{
|
2
|
+
{{#indent}}{{#each rendered_children.then as |then_statement|}}{{{then_statement}}}{{/each}}
|
3
3
|
{{/indent}}
|
4
4
|
{{#if has_else?}}} else {
|
5
|
-
{{#indent}}{{#each rendered_children.else}}{{{
|
5
|
+
{{#indent}}{{#each rendered_children.else as |else_statement|}}{{{else_statement}}}{{/each}}
|
6
6
|
{{/indent}}
|
7
7
|
{{/if}}{{/curly}}
|
@@ -4,7 +4,7 @@ this.actionwords = Object.create(require('{{{ relative_path './actionwords.js' }
|
|
4
4
|
{{#unless is_empty?}}{{> body}}
|
5
5
|
{{/unless}}{{/curly}});
|
6
6
|
|
7
|
-
{{#each rendered_children.scenarios}}{{{
|
7
|
+
{{#each rendered_children.scenarios as |scenario|}}{{{scenario}}}
|
8
8
|
|
9
9
|
{{/each}}
|
10
10
|
{{/indent}}
|
@@ -1 +1 @@
|
|
1
|
-
{{#join treated_chunks ' + '}}{{#if
|
1
|
+
{{#join treated_chunks ' + ' as |treated_chunk|}}{{#if treated_chunk.is_variable?}}String({{{treated_chunk.raw.children.name}}}){{else}}"{{{ escape_double_quotes treated_chunk.raw.children.value }}}"{{/if}}{{else}}""{{/join}}
|
@@ -2,7 +2,7 @@ Scenario: {{{ rendered_children.name }}}{{#if context.uids}}{{#if rendered_child
|
|
2
2
|
{{#if has_tags?}}Meta:
|
3
3
|
{{join rendered_children.tags ' '}}
|
4
4
|
{{/if}}{{#if has_description?}}{{description_with_annotations rendered_children.description}}
|
5
|
-
{{/if}}{{#each rendered_children.body}}{{{
|
5
|
+
{{/if}}{{#each rendered_children.body as |step|}}{{{ step }}}
|
6
6
|
{{/each}}{{#if has_datasets?}}
|
7
7
|
Examples:
|
8
8
|
{{#if context.with_dataset_names}}| dataset name {{/if}}| {{ join rendered_children.parameters ' | ' }} |{{#if context.uids}} hiptest-uid |{{/if}}
|
@@ -11,6 +11,6 @@ Narrative:
|
|
11
11
|
Lifecycle:
|
12
12
|
Before:
|
13
13
|
Scope: SCENARIO
|
14
|
-
{{#each rendered_children.body}}{{{
|
15
|
-
{{/each}}{{/unless}}{{#each rendered_children.scenarios}}
|
16
|
-
{{{
|
14
|
+
{{#each rendered_children.body as |step|}}{{{ step }}}
|
15
|
+
{{/each}}{{/unless}}{{#each rendered_children.scenarios as |scenario|}}
|
16
|
+
{{{scenario}}}{{/each}}
|
@@ -1 +1 @@
|
|
1
|
-
{{#strip}}{{#join chunks context.parameter_delimiter}}{{#if
|
1
|
+
{{#strip}}{{#join chunks context.parameter_delimiter as |treated_chunk|}}{{#if treated_chunk.is_parameter}}${{treated_chunk.name}}{{else}}{{treated_chunk.value}}{{/if}}{{/join}}{{#each extra_inlined_parameters as |param|}} {{context.parameter_delimiter}}${{param.name}}{{context.parameter_delimiter}}{{/each}}{{/strip}}{{#if has_free_text_parameter?}} """$freeText"""{{/if}}{{#if has_datatable_parameter?}} $datatable{{/if}}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{{#if rendered_children.gherkin_annotation }}@{{{ rendered_children.gherkin_annotation }}}("{{#escape_backslashes_and_double_quotes}}{{> gherkin_pattern}}{{/escape_backslashes_and_double_quotes}}")
|
2
2
|
public void {{{camelize_lower rendered_children.name}}}({{{ join rendered_children.parameters_ordered_by_pattern ', '}}}) {{#curly}}{{#indent}}
|
3
|
-
{{{ context.call_prefix }}}.{{{camelize_lower rendered_children.name}}}({{#if has_parameters?}}{{#join raw_parameter_names ', '}}{{{camelize_lower
|
3
|
+
{{{ context.call_prefix }}}.{{{camelize_lower rendered_children.name}}}({{#if has_parameters?}}{{#join raw_parameter_names ', ' as |param|}}{{{camelize_lower param}}}{{/join}}{{/if}});
|
4
4
|
{{/indent}}
|
5
5
|
{{/curly}}
|
6
6
|
{{/if}}
|
data/lib/templates/php/_body.hbs
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
{{#comment '//'}}{{#if has_description?}}{{{ rendered_children.description }}}
|
4
4
|
{{/if}}{{#if has_tags?}}Tags: {{{ join rendered_children.tags ' '}}}
|
5
5
|
{{/if}}{{/comment}}
|
6
|
-
{{#each rendered_children.body}}{{{
|
6
|
+
{{#each rendered_children.body as |step|}}{{{step}}}
|
7
7
|
{{/each}}{{#if has_step?}}
|
8
8
|
throw new Exception('Not implemented');{{/if}}{{/indent}}
|
9
9
|
{{/clear_empty_lines}}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<?php
|
2
2
|
{{#if uses_library?}}require_once('ActionwordLibrary.php');{{/if}}
|
3
3
|
|
4
|
-
class Actionwords {{#if uses_library?}}extends ActionwordLibrary {{/if}}{{#curly}}{{#indent}}{{#each rendered_children.actionwords}}
|
5
|
-
{{{
|
4
|
+
class Actionwords {{#if uses_library?}}extends ActionwordLibrary {{/if}}{{#curly}}{{#indent}}{{#each rendered_children.actionwords as |actionword|}}
|
5
|
+
{{{actionword}}}
|
6
6
|
{{/each}}
|
7
7
|
{{/indent}}
|
8
8
|
{{/curly}}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
if ({{{ rendered_children.condition }}}) {{#curly}}
|
2
|
-
{{#indent}}{{#each rendered_children.then}}{{{
|
2
|
+
{{#indent}}{{#each rendered_children.then as |then_statement|}}{{{then_statement}}}{{/each}}
|
3
3
|
{{/indent}}
|
4
4
|
{{#if has_else?}}} else {
|
5
|
-
{{#indent}}{{#each rendered_children.else}}{{{
|
5
|
+
{{#indent}}{{#each rendered_children.else as |else_statement|}}{{{else_statement}}}{{/each}}
|
6
6
|
{{/indent}}
|
7
7
|
{{/if}}{{/curly}}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<?php
|
2
|
-
{{#each library_names}}require_once('{{camelize
|
2
|
+
{{#each library_names as |library_name|}}require_once('{{camelize library_name}}Library.php');
|
3
3
|
{{/each}}
|
4
|
-
class ActionwordLibrary {{#curly}}{{#indent}}{{#each library_names}}
|
5
|
-
public function get{{camelize
|
6
|
-
return {{camelize
|
4
|
+
class ActionwordLibrary {{#curly}}{{#indent}}{{#each library_names as |library_name|}}
|
5
|
+
public function get{{camelize library_name}}Library() {{#curly}}{{#indent}}
|
6
|
+
return {{camelize library_name}}Library::getInstance();
|
7
7
|
{{/indent}}
|
8
8
|
{{/curly}}
|
9
9
|
{{/each}}{{/indent}}
|
@@ -12,8 +12,8 @@ self::$_instance = new {{camelize rendered_children.name}}Library();
|
|
12
12
|
return self::$_instance;
|
13
13
|
{{/indent}}
|
14
14
|
{{/curly}}
|
15
|
-
{{#each rendered_children.library_actionwords}}
|
16
|
-
{{{
|
15
|
+
{{#each rendered_children.library_actionwords as |actionword|}}
|
16
|
+
{{{actionword}}}
|
17
17
|
{{/each}}
|
18
18
|
{{/indent}}
|
19
19
|
{{/curly}}
|
@@ -1 +1 @@
|
|
1
|
-
"{{#each treated_chunks}}{{#if
|
1
|
+
"{{#each treated_chunks as |treated_chunk|}}{{#if treated_chunk.is_variable?}}{${{{camelize_lower treated_chunk.raw.children.name}}}}{{else}}{{{ escape_double_quotes treated_chunk.raw.children.value }}}{{/if}}{{/each}}"
|
data/lib/templates/php/tests.hbs
CHANGED
data/lib/templates/php/while.hbs
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
{{#comment '#'}}{{#if has_description?}}{{{ rendered_children.description }}}
|
4
4
|
{{/if}}{{#if has_tags?}}Tags: {{{ join rendered_children.tags ' '}}}
|
5
5
|
{{/if}}{{/comment}}
|
6
|
-
{{#each rendered_children.body}}{{{
|
6
|
+
{{#each rendered_children.body as |step|}}{{{step}}}
|
7
7
|
{{/each}}
|
8
8
|
{{#if has_step?}}raise NotImplementedError{{/if}}
|
9
9
|
{{#if is_empty?}}pass{{/if}}
|
@@ -7,6 +7,6 @@ class Actionwords{{#if uses_library?}}(ActionwordLibrary){{/if}}:{{#indent}}
|
|
7
7
|
def __init__(self):{{#indent}}
|
8
8
|
pass{{/indent}}
|
9
9
|
|
10
|
-
{{#each rendered_children.actionwords}}{{{
|
10
|
+
{{#each rendered_children.actionwords as |actionword|}}{{{actionword}}}
|
11
11
|
{{/each}}
|
12
12
|
{{/indent}}
|
@@ -7,6 +7,6 @@ def setUp(self):{{#indent}}
|
|
7
7
|
self.actionwords = Actionwords(self){{/indent}}
|
8
8
|
{{#unless is_empty?}}{{> body}}
|
9
9
|
{{/unless}}
|
10
|
-
{{#each rendered_children.scenarios}}{{{
|
10
|
+
{{#each rendered_children.scenarios as |scenario|}}{{{scenario}}}
|
11
11
|
{{/each}}
|
12
12
|
{{/indent}}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
|
3
|
-
{{#each library_names}}from steps.{{downcase
|
3
|
+
{{#each library_names as |library_name|}}from steps.{{downcase library_name}}_library import {{camelize library_name}}Library
|
4
4
|
{{/each}}
|
5
5
|
|
6
|
-
class ActionwordLibrary:{{#indent}}{{#each library_names}}
|
7
|
-
def get{{camelize
|
8
|
-
return {{camelize
|
6
|
+
class ActionwordLibrary:{{#indent}}{{#each library_names as |library_name|}}
|
7
|
+
def get{{camelize library_name}}Library(self):{{#indent}}
|
8
|
+
return {{camelize library_name}}Library(self){{/indent}}
|
9
9
|
{{/each}}{{/indent}}
|
@@ -12,6 +12,6 @@ if {{capitalize rendered_children.name}}Library.__instance is None{{#indent}}
|
|
12
12
|
|
13
13
|
return {{capitalize rendered_children.name}}Library.__instance{{/indent}}
|
14
14
|
|
15
|
-
{{#each rendered_children.library_actionwords}}{{{
|
15
|
+
{{#each rendered_children.library_actionwords as |actionword|}}{{{actionword}}}
|
16
16
|
{{/each}}
|
17
17
|
{{/indent}}
|
@@ -6,6 +6,6 @@ class Test{{{ camelize self_name }}}(unittest.TestCase):
|
|
6
6
|
def setUp(self):
|
7
7
|
self.actionwords = Actionwords(self)
|
8
8
|
{{#indent}}
|
9
|
-
{{#each rendered_children.scenarios}}{{{
|
9
|
+
{{#each rendered_children.scenarios as |scenario|}}{{{scenario}}}
|
10
10
|
{{/each}}
|
11
11
|
{{/indent}}
|
@@ -1 +1 @@
|
|
1
|
-
"{{#each treated_chunks}}{{#if
|
1
|
+
"{{#each treated_chunks as |treated_chunk|}}{{#if treated_chunk.is_variable?}}%s{{else}}{{{ escape_double_quotes treated_chunk.raw.children.value }}}{{/if}}{{/each}}"{{#if variable_names}} % ({{{ join variable_names ', '}}}){{/if}}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{{#if has_datasets?}}
|
2
2
|
Test Template{{tab}}{{{ normalize_with_spaces rendered_children.name }}}
|
3
3
|
|
4
|
-
*** Test Cases ***{{#each node.children.parameters}}{{{ tab }}}{{{
|
4
|
+
*** Test Cases ***{{#each node.children.parameters as |parameter|}}{{{ tab }}}{{{ parameter.children.name}}}{{/each}}
|
5
5
|
{{{ rendered_children.datatable }}}
|
6
6
|
|
7
7
|
*** Keywords ***
|
@@ -1,2 +1,2 @@
|
|
1
|
-
{{#each rendered_children.datasets}}{{{
|
1
|
+
{{#each rendered_children.datasets as |dataset|}}{{{dataset}}}
|
2
2
|
{{/each}}
|
@@ -10,26 +10,26 @@ Resource{{tab}}keywords.txt
|
|
10
10
|
Test Setup{{tab}}Run Keywords{{tab}}{{join rendered_children.body "\n... AND \t"}}
|
11
11
|
{{/unless}}
|
12
12
|
*** Test Cases ***{{#if datatables_present?}}
|
13
|
-
{{#each rendered_children.splitted_scenarios
|
14
|
-
{{#if
|
15
|
-
{{#if tags}}[Tags]{{tab}}{{{join tags "\t"}}}
|
16
|
-
{{/if}}[Template]{{tab}}{{normalize_with_spaces
|
17
|
-
{{join
|
13
|
+
{{#each rendered_children.splitted_scenarios as |scenario|}}
|
14
|
+
{{#if scenario.datatable}}{{#each scenario.datasets as |dataset|}}{{normalize_with_spaces dataset.scenario_name}} {{normalize_with_spaces dataset.name}}{{#if dataset.test_snapshot_uid}} (uid:{{normalize dataset.test_snapshot_uid}}){{/if}}{{#indent}}
|
15
|
+
{{#if scenario.tags}}[Tags]{{tab}}{{{join scenario.tags "\t"}}}
|
16
|
+
{{/if}}[Template]{{tab}}{{normalize_with_spaces dataset.scenario_name}} keyword
|
17
|
+
{{join dataset.arguments '\t'}}{{/indent}}
|
18
18
|
|
19
19
|
{{/each}}
|
20
|
-
{{else}}{{normalize_with_spaces
|
21
|
-
{{#if
|
22
|
-
{{/if}}{{join
|
23
|
-
{{/if}}{{/
|
20
|
+
{{else}}{{normalize_with_spaces scenario.name}}{{#if scenario.uid}}(uid:{{normalize scenario.uid}}){{/if}}{{#indent}}
|
21
|
+
{{#if scenario.tags}}[Tags]{{tab}}{{{join scenario.tags "\t"}}}
|
22
|
+
{{/if}}{{join scenario.body '\n'}}{{/indent}}
|
23
|
+
{{/if}}{{/each}}
|
24
24
|
*** Keywords ***
|
25
25
|
|
26
|
-
{{#each rendered_children.splitted_scenarios}}{{#if
|
27
|
-
[Arguments]{{tab}}{{join
|
28
|
-
{{join
|
26
|
+
{{#each rendered_children.splitted_scenarios as |scenario|}}{{#if scenario.datatable}}{{normalize_with_spaces scenario.name}} keyword{{#indent}}
|
27
|
+
[Arguments]{{tab}}{{join scenario.parameters '\t'}}
|
28
|
+
{{join scenario.body '\n'}}{{/indent}}
|
29
29
|
|
30
30
|
{{/if}}{{/each}}{{else}}
|
31
|
-
{{#each rendered_children.splitted_scenarios}}
|
32
|
-
{{normalize_with_spaces
|
33
|
-
[Tags]{{tab}}{{{ join
|
34
|
-
{{join
|
31
|
+
{{#each rendered_children.splitted_scenarios as |scenario|}}
|
32
|
+
{{normalize_with_spaces scenario.name}}{{#if scenario.uid}}(uid:{{normalize scenario.uid}}){{/if}}{{#indent}}{{#if scenario.tags}}
|
33
|
+
[Tags]{{tab}}{{{ join scenario.tags '\t'}}}{{/if}}
|
34
|
+
{{join scenario.body '\n'}}{{/indent}}
|
35
35
|
{{/each}}{{/if}}
|
@@ -2,24 +2,24 @@
|
|
2
2
|
Resource{{tab}}keywords.txt
|
3
3
|
|
4
4
|
*** Test Cases ***{{#if datatables_present?}}
|
5
|
-
{{#each rendered_children.splitted_scenarios}}
|
6
|
-
{{#if
|
7
|
-
[Template]{{tab}}{{
|
8
|
-
{{
|
9
|
-
{{else}}{{normalize_with_spaces
|
10
|
-
[Tags]{{tab}}{{{ join
|
11
|
-
{{/if}}{{join
|
5
|
+
{{#each rendered_children.splitted_scenarios as |scenario|}}
|
6
|
+
{{#if scenario.datatable}}{{scenario.name}}{{#indent}}
|
7
|
+
[Template]{{tab}}{{scenario.name}} keyword
|
8
|
+
{{scenario.datatable}}{{/indent}}
|
9
|
+
{{else}}{{normalize_with_spaces scenario.name}}{{#if scenario.uid}} (uid:{{normalize scenario.uid}}){{/if}}{{#indent}}{{#if scenario.tags}}
|
10
|
+
[Tags]{{tab}}{{{ join scenario.tags '\t'}}}
|
11
|
+
{{/if}}{{join scenario.body '\n'}}{{/indent}}
|
12
12
|
{{/if}}{{/each}}
|
13
13
|
*** Keywords ***
|
14
14
|
|
15
|
-
{{#each rendered_children.splitted_scenarios}}{{#if
|
16
|
-
[Arguments]{{tab}}${__test_name}{{tab}}{{join
|
17
|
-
{{#if
|
18
|
-
{{/if}}{{join
|
15
|
+
{{#each rendered_children.splitted_scenarios as |scenario|}}{{#if scenario.datatable}}{{normalize_with_spaces scenario.name}} keyword{{#indent}}
|
16
|
+
[Arguments]{{tab}}${__test_name}{{tab}}{{join scenario.parameters '\t'}}
|
17
|
+
{{#if scenario.tags}}[Tags]{{tab}}{{{ join scenario.tags '\t'}}}
|
18
|
+
{{/if}}{{join scenario.body '\n'}}{{/indent}}
|
19
19
|
|
20
20
|
{{/if}}{{/each}}{{else}}
|
21
|
-
{{#each rendered_children.splitted_scenarios}}
|
22
|
-
{{normalize_with_spaces
|
23
|
-
[Tags]{{tab}}{{{ join
|
24
|
-
{{join
|
21
|
+
{{#each rendered_children.splitted_scenarios as |scenario|}}
|
22
|
+
{{normalize_with_spaces scenario.name}}{{#if scenario.uid}} (uid:{{normalize scenario.uid}}){{/if}}{{#indent}}{{#if scenario.tags}}
|
23
|
+
[Tags]{{tab}}{{{ join scenario.tags '\t'}}}{{/if}}
|
24
|
+
{{join scenario.body '\n'}}{{/indent}}
|
25
25
|
{{/each}}{{/if}}
|