Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Computed Infos using previous step data #664

Closed
amandavanice opened this issue May 3, 2023 · 4 comments
Closed

Computed Infos using previous step data #664

amandavanice opened this issue May 3, 2023 · 4 comments
Labels

Comments

@amandavanice
Copy link

When using a test case with more then one step, the Computer Infos end up containing data from the previous step and not the current one. This results in not being able to output the current result in 'info'

name: Tests
testcases:
  - name: MultiStep
    steps:
      - type: exec
        name: '1'
        script: echo 'step1'
        info: '{{.result.systemout}}'
      - type: exec
        name: '2'
        script: echo 'step2'
        info: '{{.result.systemout}}'
      - type: exec
        name: '3'
        script: echo 'step3'
        info: '{{.result.systemout}}'

Output:

[trac] writing output/venom.log
• Tests (siteActions/startHP.yaml)
 	• MultiStep PASS
	  [info] step1
	  [info] step1
	  [info] step2
Writing file output/test_results_siteActions_startHP.xml
Writing html file output/test_results.html
final status: PASS

Computed Infos:
1
2
3

@yesnault yesnault added the bug label May 4, 2023
@fokion
Copy link
Contributor

fokion commented May 4, 2023

yeap had the same issue

@fokion
Copy link
Contributor

fokion commented May 4, 2023

This issue looks similar with #622

@yesnault
Copy link
Member

yesnault commented Jun 1, 2023

yes, fixed on v1.2.0.beta-2 version.

@yesnault yesnault closed this as completed Jun 1, 2023
@jvalecillos
Copy link

I can confirm the same issue happening since version 1.0.0 and even earlier. And it is the same as in #658

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants