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

Tzatziki {{var}} reporting interpretation #294

Open
bmougeot opened this issue Jul 9, 2024 · 0 comments
Open

Tzatziki {{var}} reporting interpretation #294

bmougeot opened this issue Jul 9, 2024 · 0 comments

Comments

@bmougeot
Copy link
Contributor

bmougeot commented Jul 9, 2024

🚀 Feature Request

Hello 👋🏼

Subject: Allow tzatziki {{var}} interpretation in report.

Example:

Scenario: This is an example of scenario used in our team
        Given we post "{{tillURL}}/acquisitions":
        """
            {"value": "3608399888925"}
        """
        And we get "{{tillURL}}/transactions/current"

        # ⬇️ here I will retrieve and save in {{id}} my uuid data return by previous step
        And we save result as id 
        
        And we patch "{{tillURL}}/transactions/current/status":
        """
            {"status": "CANCELED"}
        """
        
        # ⬇️ here I will call another endpoint by my {{id}} value to assert his new status
        When we get "{{tillURL}}/transactions/{{id}}"
        Then we receive a status OK_200 and:
        """
            {
                "id": "{{id}}",
                "status": "CANCELED"
            }
        """

We are using since few weeks tzatziki for our integration tests and sometimes we should retrieve some data (not unique like an id, uuid, etc) before to do some calls.

Our problem: all {{var}} are not interpreted by our cucumber html (based on cucumber.json generated)

Example:
The cucumber.json generated after tests looks like to:

{
   "result": {
         "duration": 139339000,
          "status": "passed"
      },
      "line": 23,
      "name": "we get \"{{tillURL}}/transactions/{{id}}\"", # ⬅️ example
      "match": {
           "arguments": [
                  {....},
                  {
                      "val": "{{tillURL}}/transactions/{{id}}", # ⬅️ example
                      "offset": 8
                   }
            ],
            {....}
       },
         "keyword": "When "
}

Our cucumber html report is generated from the cucumber.json:

Capture d’écran 2024-07-09 à 11 38 21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant